write a program to display reverse of a number using for
loop?
Answer Posted / k.ashok kumar
BETTER CODE:
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
clrscr();
printf("\n Enter a number : ");
scanf("%d",&a);
printf("\n Reverse number of %d is : ",a);
while(a)
{
printf("%d",a%10);
a/=10;
}
getch();
}
Is This Answer Correct ? | 6 Yes | 8 No |
Post New Answer View All Answers
Is c language still used?
Explain what is the purpose of "extern" keyword in a function declaration?
What is a list in c?
What is the difference between malloc() and calloc()?
List the different types of c tokens?
Where static variables are stored in memory in c?
What does != Mean in c?
What is the advantage of c?
using for loop sum 2 number of any 4 digit number in c language
Write a program to use switch statement.
Describe wild pointers in c?
What's the total generic pointer type?
Why is c not oop?
What is a void pointer in c?
What are the 4 data types?