HOW TO FIND OUT THE RREVERS OF A GIVEN DIGIT NUMBER IF IT
IS INPUT THROUGH THE KEYBORD BY USING C LANGUAGE
Answer Posted / yogita
#include<stdio.h>
void main()
{
int n;
printf("enter any number");
scanf("%d",&n);
while(n>0)
{
a=n%10;
n=n/10;
pritnf("%d",a);
}
getch();
}
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
What is linear search?
What is a loop?
How do you override a defined macro?
how many errors in c explain deply
How can I prevent another program from modifying part of a file that I am modifying?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
The file stdio.h, what does it contain?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
Explain how can you be sure that a program follows the ansi c standard?
Can I initialize unions?
What is the use of putchar function?
How variables are declared in c?
write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list
What is a function in c?
how to create duplicate link list using C???