Write an algorithm draw a flowchart and delop c program to reverse an a digit number
Answers
Answered by
0
C Program to find reverse of a number:
int main()
printf("Enter any number = ");
scanf("%d", &number);
while(number != 0)
reversed = (reversed * 10) + (number % 10);
printf("Reverse = %d", reversed);
int main()
printf("Enter any number = ");
scanf("%d", &number);
while(number != 0)
reversed = (reversed * 10) + (number % 10);
printf("Reverse = %d", reversed);
Attachments:
Similar questions