simple c program for 12345 convert 54321 with out using string

Answer Posted / vignesh1988i

hi good morning folks... happy sunday.......

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


thank u

Is This Answer Correct ?    31 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you please explain the difference between exit() and _exit() function?

585


How many data structures are there in c?

612


What are the different properties of variable number of arguments?

659


Why is c known as a mother language?

740


Is a house a mass structure?

639






.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

1993


How can I discover how many arguments a function was actually called with?

628


What is typedef struct in c?

581


What is register variable in c language?

596


What language is windows 1.0 written?

571


What are the functions to open and close file in c language?

723


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

1491


please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

1536


Is python a c language?

550


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

1462