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


Please Help Members By Posting Answers For Below Questions

Is c language still used?

536


Explain what is the purpose of "extern" keyword in a function declaration?

619


What is a list in c?

619


What is the difference between malloc() and calloc()?

615


List the different types of c tokens?

625






Where static variables are stored in memory in c?

521


What does != Mean in c?

585


What is the advantage of c?

609


using for loop sum 2 number of any 4 digit number in c language

1732


Write a program to use switch statement.

656


Describe wild pointers in c?

638


What's the total generic pointer type?

612


Why is c not oop?

535


What is a void pointer in c?

606


What are the 4 data types?

594