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...

WRITE A PROGRAM TO FIND A REVERSE OF TWO NO

Answer Posted / ajay

#include<stdio.h>
#include<conio.h>
main()
{
int a, b,c,d;
printf("Enter a value:");
scanf("%d", &a);
if (a%10==0)
{b=a/10;
printf("Reverse value is:%0d", b);}
else
{c=a%10;
d=(a/10)+(c*10);
printf("Reverse value is:%d", d);}
getch();
}

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are run-time errors?

1067


Can we use visual studio for c?

1019


Explain how can you determine the size of an allocated portion of memory?

1059


What is a constant and types of constants in c?

1079


Explain how can I remove the trailing spaces from a string?

1010


Describe explain how arrays can be passed to a user defined function

1059


c program to compute AREA under integral

2349


Are comments included during the compilation stage and placed in the EXE file as well?

1039


How to declare pointer variables?

1180


What does c mean in standard form?

1115


How can I read in an object file and jump to locations in it?

996


What is a file descriptor in c?

1065


Is it possible to execute code even after the program exits the main() function?

1292


What are pointers?

1053


What is cohesion and coupling in c?

991