to find out the reverse digit of a given number
Answer Posted / jet lee
#include<stdio.h>
int rev(int y);
int main()
{
int x;
printf("\n please enter the number:\n");
scanf("%d",&x);
rev(x);
return 0;
}
int rev(int y)
{
int i;
do
{
i=(y%10);
printf("%d",i);
y=(y/10);
}while(y>0);
}
| Is This Answer Correct ? | 17 Yes | 9 No |
Post New Answer View All Answers
What are the 4 types of organizational structures?
What is malloc and calloc?
What is line in c preprocessor?
What is the difference between local variable and global variable in c?
What is the function of this pointer?
Differentiate between calloc and malloc.
What is the use of a conditional inclusion statement in C?
Is c# a good language?
Write a program to know whether the input number is an armstrong number.
What is a buffer in c?
write a c program in such a way that if we enter the today date the output should be next day's date.
Write program to remove duplicate in an array?
What are local static variables?
What functions are used for dynamic memory allocation in c language?
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.