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
How can I pad a string to a known length?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
Why do we need a structure?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
Write a program in c to replace any vowel in a string with z?
please explain every phase in the "SDLC" in the dotnet.
how logic is used
What is the difference between single charater constant and string constant?
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
List out few of the applications that make use of Multilinked Structures?
please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics
When was c language developed?
Explain how are 16- and 32-bit numbers stored?
Write the control statements in C language
Should I learn data structures in c or python?