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 / vishnu

#include<stdio.h>
#include<conio.h>
void main()
{
int r,num,sum=0;
clrscr();
printf("Enter any Digit \n");
scanf("%d", &num);
while(num!=0)
{
r=num%10;
sum=sum*10+r;
num=num/10;
}
printf("Reverse Digit of a given number = %d",sum);
getch();
}

Is This Answer Correct ?    66 Yes 26 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is assert and when would I use it?

1009


What is a global variable in c?

1006


What are the keywords in c?

1124


What is malloc() function?

1160


Explain what is wrong with this program statement?

1120


please give me some tips for the placement in the TCS.

2114


Why is not a pointer null after calling free?

1023


What is the difference between far and near ?

1194


number of times a digit is present in a number

2039


What are the different types of C instructions?

1316


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon

5953


How are Structure passing and returning implemented by the complier?

1169


What is the hardest programming language?

1149


List the difference between a 'copy constructor' and a 'assignment operator' in C?

1088


Write a program to print ASCII code for a given digit.

1093