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

Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1450


Difference between pass by reference and pass by value?

647


I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

548


I heard that you have to include stdio.h before calling printf. Why?

576


What is file in c preprocessor?

639






Why doesnt that code work?

593


What is string function c?

558


Why do we use int main?

596


What is a string?

656


What is struct node in c?

607


Tell me what is the purpose of 'register' keyword in c language?

605


the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

554


What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25

1482


What is local and global variable in c?

606


What are the benefits of c language?

637