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
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
Difference between pass by reference and pass by value?
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
I heard that you have to include stdio.h before calling printf. Why?
What is file in c preprocessor?
Why doesnt that code work?
What is string function c?
Why do we use int main?
What is a string?
What is struct node in c?
Tell me what is the purpose of 'register' keyword in c language?
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
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
What is local and global variable in c?
What are the benefits of c language?