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 are run-time errors?
Can we use visual studio for c?
Explain how can you determine the size of an allocated portion of memory?
What is a constant and types of constants in c?
Explain how can I remove the trailing spaces from a string?
Describe explain how arrays can be passed to a user defined function
c program to compute AREA under integral
Are comments included during the compilation stage and placed in the EXE file as well?
How to declare pointer variables?
What does c mean in standard form?
How can I read in an object file and jump to locations in it?
What is a file descriptor in c?
Is it possible to execute code even after the program exits the main() function?
What are pointers?
What is cohesion and coupling in c?