simple c program for 12345 convert 54321 with out using string

Answer Posted / sharan

#include<stdio.h>
//#include<conio.h>
void main()
{
int n,m;
printf("enter the number :");
scanf("%d",&n);
while (n)
{
m=n%10;
n=n/10;
printf("%d",m);
}
printf("\n");
}

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area

901


What is c preprocessor mean?

1029


What are qualifiers in c?

767


What is #include stdlib h?

847


What is the total generic pointer type?

914


Why shouldn’t I start variable names with underscores?

828


What is hash table in c?

765


What are the 5 types of inheritance in c ++?

755


What does. int *x[](); means ?

816


Is it cc or c in a letter?

755


When was c language developed?

904


What does the error 'Null Pointer Assignment' mean and what causes this error?

961


C language questions for civil engineering

1461


Write a program of advanced Fibonacci series.

887


What is the use of pointers in C?

830