Answer Posted / ismail
void main()
{
long num, temp;
for(;;) {
printf("Enter number:");
scanf("%ld",&num);
if(num == 0) break;
while(num) {
temp = num%10;
num = num/10;
printf("%ld", temp);
}
printf("\n");
break;
}
getch();
}
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is int a keyword in c?
what is uses of .net
What is a #include preprocessor?
program for reversing a selected line word by word when multiple lines are given without using strrev
Why isn't any of this standardized in c? Any real program has to do some of these things.
What is the difference between Printf(..) and sprint(...) ?
How do I convert a string to all upper or lower case?
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
What are header files and what are its uses in C programming?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
What is meant by int main ()?
What is sizeof in c?
What is the difference between array_name and &array_name?
How do I use strcmp?
Why c language is called c?