Answer Posted / vaibhav
#include <stdio.h>
#include<conio.h>
void main()
{
int n,t;
printf("\n enter the 2 digit no.");
scanf("%d",&n);
while(n%10>0)
{
t=n%10;
n=n/10;
printf("\n reverse no. is%d",t);
}
getch();
}
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is an endless loop?
Explain union. What are its advantages?
Why is c called a structured programming language?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
What are preprocessor directives in c?
What is volatile keyword in c?
Explain how can I right-justify a string?
Is that possible to store 32768 in an int data type variable?
What is difference between %d and %i in c?
Explain what is wrong in this statement?
Explain how can you restore a redirected standard stream?
Write a program to print “hello world” without using semicolon?
What does calloc stand for?
Describe the header file and its usage in c programming?
how to capitalise first letter of each word in a given string?