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
Do you know null pointer?
Why c is a mother language?
What does 4d mean in c?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
What is the use of #define preprocessor in c?
What is static and volatile in c?
How do I read the arrow keys? What about function keys?
How to set file pointer to beginning c?
Why are all header files not declared in every c program?
Is c procedural or functional?
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
Explain how can I convert a number to a string?
Is malloc memset faster than calloc?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
what is the diffrenet bettwen HTTP and internet protocol