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
How can I do graphics in c?
please explain every phase in the "SDLC" in the dotnet.
In a switch statement, explain what will happen if a break statement is omitted?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
What is a nested formula?
What are the back slash character constants or escape sequence charactersavailable in c?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
what is different between auto and local static? why should we use local static?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
What is function what are the types of function?
What is difference between stdio h and conio h?
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
how to execute a program using if else condition and the output should enter number and the number is odd only...
What is the difference between array and pointer in c?
What is linear search?