HOW TO FIND OUT THE RREVERS OF A GIVEN DIGIT NUMBER IF IT
IS INPUT THROUGH THE KEYBORD BY USING C LANGUAGE
Answer Posted / audumbar
#include<stdio.h>
main()
{
int n;
printf("\n enter the number");
scanf("%d",&n);
while(n!=0)
{
int a=n%10;
printf("%d",a);
n=n/10;
}
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the code for 3 questions and answer check in VisualBasic.Net?
What is a ternary operator in c?
How can I handle floating-point exceptions gracefully?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
Why doesnt this code work?
How is a null pointer different from a dangling pointer?
Write a program to print "hello world" without using a semicolon?
What would be an example of a structure analogous to structure c?
What is the difference between array and structure in c?
Write a Program to find whether the given number or string is palindrome.
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
Who is the founder of c language?
What is c programing language?
How can I write a function analogous to scanf?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.