Answer Posted / bhavesh kashikar
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a;
float rem=0,rev=0;
while(rev>=0)
{
rem=a%10;
rev=rev*10+rem;
a=a/10;
}
printf(Reverse of two digit no is:=%d",rev);
getch();
}
| Is This Answer Correct ? | 13 Yes | 4 No |
Post New Answer View All Answers
how to print the character with maximum occurence and print that number of occurence too in a string given ?
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
Why c is procedure oriented?
How can I determine whether a machines byte order is big-endian or little-endian?
What is the use of typedef in c?
Where static variables are stored in c?
what is the role you expect in software industry?
What is #define?
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
Do you have any idea about the use of "auto" keyword?
What is malloc and calloc?
What is C language ?
Why c is a procedural language?
What is the process to generate random numbers in c programming language?
program for reversing a selected line word by word when multiple lines are given without using strrev