Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

to find out the reverse digit of a given number

Answer Posted / vignesh1988i

#include<stdio.h>
#include<conio.h>
void main()
{
int n,a;
printf("enter the number to be reversed :");
scanf("%d",&n);
printf("the reversed number is :");
for(int i=0;n>0;i++)
{
a=n%10;
n=n/10;
printf("%d",a);
}
getch();
}

Is This Answer Correct ?    74 Yes 37 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is register variable in c language?

1063


What is scope rule of function in c?

1150


What is strcpy() function?

1219


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

1181


What are identifiers and keywords in c?

1200


What is calloc() function?

1165


How can you avoid including a header more than once?

1024


What are the types of c language?

1081


How do you view the path?

1184


‎How to define structures? · ‎

1148


What is a constant and types of constants in c?

1174


Explain how do you override a defined macro?

1135


What is wrong with this program statement?

1088


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

2403


What is const and volatile in c?

1097