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
How will you write a code for accessing the length of an array without assigning it to another variable?
Explain about the constants which help in debugging?
what is the structure pointer?
How to Throw some light on the splay trees?
Explain how can you tell whether two strings are the same?
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
What are the disadvantages of c language?
What is a header file?
Explain the use of keyword 'register' with respect to variables.
What is a example of a variable?
What is function prototype?
What is 'bus error'?
How do I swap bytes?
Explain how can I remove the trailing spaces from a string?