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
What math functions are available for integers? For floating point?
An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above
List a few unconditional control statement in c.
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
How is a structure member accessed?
What is the purpose of void pointer?
What are the benefits of organizational structure?
What is queue in c?
Write a C program to count the number of email on text
what does static variable mean?
What is the code in while loop that returns the output of given code?
Describe dynamic data structure in c programming language?
Is multithreading possible in c?
Do variables need to be initialized?
How to create struct variables?