to find out the reverse digit of a given number
Answer Posted / vishnu
#include<stdio.h>
#include<conio.h>
void main()
{
int r,num,sum=0;
clrscr();
printf("Enter any Digit \n");
scanf("%d", &num);
while(num!=0)
{
r=num%10;
sum=sum*10+r;
num=num/10;
}
printf("Reverse Digit of a given number = %d",sum);
getch();
}
| Is This Answer Correct ? | 66 Yes | 26 No |
Post New Answer View All Answers
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
Explain low-order bytes.
What is extern c used for?
How many identifiers are there in c?
Explain how many levels deep can include files be nested?
What is s or c?
Explain 'bit masking'?
What is a double c?
What is the scope of an external variable in c?
What are header files and explain what are its uses in c programming?
What is the full form of getch?
Can we declare function inside main?
Can we change the value of static variable in c?
What functions are in conio h?
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function