ANSI C Chapter-6 Programming Exercise.

C Problem 6.1:  Given a number, write a program using while loop to reverse the digits of the number.For example ,the number  12345 should be written as  54321. Solution: #include <stdio.h> int main() {     int n;     printf("enter your number to revice\n");     scanf("%d",&n);     printf("reverse of your number %d is : ",n);     while(n!=0)         {         … Continue reading ANSI C Chapter-6 Programming Exercise.