Answer Posted / ashok
#include<stdio.h>
#include<conio.h>
void main();
int a;
clrscr();
float rem=0,rev=0;
while(rev>=0)
{
rem=a%10;
rev=rev+rem;
a=a/10;
}
printf(Reverse of two digit no is:=%d",rev);
getch();
}
| Is This Answer Correct ? | 21 Yes | 10 No |
Post New Answer View All Answers
How do you declare a variable that will hold string values?
swap 2 numbers without using third variable?
What do you mean by recursion in c?
Can we initialize extern variable in c?
Is it better to use a macro or a function?
What is indirection? How many levels of pointers can you have?
What are structures and unions? State differencves between them.
What is wrong with this program statement? void = 10;
Explain how can you determine the size of an allocated portion of memory?
Write a program to print fibonacci series without using recursion?
What happens if header file is included twice?
Why is python slower than c?
Tell us two differences between new () and malloc ()?
#include
What is cohesion and coupling in c?