1.

wap in GW BASIC to check whether a number is palindrome or not (please give the answer with program)​

Answer»

tion:WAP to input any NUMBER and check whether the given no. is PALINDROME or not.WAP to input any number and check whether the given no. is palindrome or not.CLSWAP to input any number and check whether the given no. is palindrome or not.CLSINPUT "ENTER ANY NUMBER"; NWAP to input any number and check whether the given no. is palindrome or not.CLSINPUT "ENTER ANY NUMBER"; NA = NWAP to input any number and check whether the given no. is palindrome or not.CLSINPUT "ENTER ANY NUMBER"; NA = NS = 0WAP to input any number and check whether the given no. is palindrome or not.CLSINPUT "ENTER ANY NUMBER"; NA = NS = 0WHILE N < > 0WAP to input any number and check whether the given no. is palindrome or not.CLSINPUT "ENTER ANY NUMBER"; NA = NS = 0WHILE N < > 0R = N MOD 10WAP to input any number and check whether the given no. is palindrome or not.CLSINPUT "ENTER ANY NUMBER"; NA = NS = 0WHILE N < > 0R = N MOD 10S = S * 10 + RWAP to input any number and check whether the given no. is palindrome or not.CLSINPUT "ENTER ANY NUMBER"; NA = NS = 0WHILE N < > 0R = N MOD 10S = S * 10 + RN = N \ 10WAP to input any number and check whether the given no. is palindrome or not.CLSINPUT "ENTER ANY NUMBER"; NA = NS = 0WHILE N < > 0R = N MOD 10S = S * 10 + RN = N \ 10WENDWAP to input any number and check whether the given no. is palindrome or not.CLSINPUT "ENTER ANY NUMBER"; NA = NS = 0WHILE N < > 0R = N MOD 10S = S * 10 + RN = N \ 10WENDIF A = S THENWAP to input any number and check whether the given no. is palindrome or not.CLSINPUT "ENTER ANY NUMBER"; NA = NS = 0WHILE N < > 0R = N MOD 10S = S * 10 + RN = N \ 10WENDIF A = S THENPRINT A; "IS PALINDROME"WAP to input any number and check whether the given no. is palindrome or not.CLSINPUT "ENTER ANY NUMBER"; NA = NS = 0WHILE N < > 0R = N MOD 10S = S * 10 + RN = N \ 10WENDIF A = S THENPRINT A; "IS PALINDROME"ELSEWAP to input any number and check whether the given no. is palindrome or not.CLSINPUT "ENTER ANY NUMBER"; NA = NS = 0WHILE N < > 0R = N MOD 10S = S * 10 + RN = N \ 10WENDIF A = S THENPRINT A; "IS PALINDROME"ELSEPRINT A; "IS NOT PALINDROME"WAP to input any number and check whether the given no. is palindrome or not.CLSINPUT "ENTER ANY NUMBER"; NA = NS = 0WHILE N < > 0R = N MOD 10S = S * 10 + RN = N \ 10WENDIF A = S THENPRINT A; "IS PALINDROME"ELSEPRINT A; "IS NOT PALINDROME"END IFWAP to input any number and check whether the given no. is palindrome or not.CLSINPUT "ENTER ANY NUMBER"; NA = NS = 0WHILE N < > 0R = N MOD 10S = S * 10 + RN = N \ 10WENDIF A = S THENPRINT A; "IS PALINDROME"ELSEPRINT A; "IS NOT PALINDROME"END IFEND



Discussion

No Comment Found