Write a program in c to input a 5 digit number and print it
in words.
Answer Posted / siddiqui_1985
i dont have answer i'm actually asking question..
What if we want to print upto nth term??
in a very first post
"
#include<stdioi.h>
void main()
{
int n,count=0,a[20];
scanf("%d",&n);
for(i=0;n>0;i++)
{
a[i]=n%10;
n=n/10;
count++;
}
for(i=0;i<count;i++)
{
switch(a[i])
{
case 1:
printf("one");
break;
case 2:
printf("two");
break;
"
he explicitly doing this using switch case.
| Is This Answer Correct ? | 6 Yes | 5 No |
Post New Answer View All Answers
What is the translation phases used in c language?
what is recursion in C
Differentiate between ordinary variable and pointer in c.
Is anything faster than c?
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
How is a pointer variable declared?
What is the stack in c?
Does c have enums?
Tell me the use of bit field in c language?
what is the significance of static storage class specifier?
What does c mean in standard form?
Explain how can I prevent another program from modifying part of a file that I am modifying?
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
What is putchar() function?
What is a program flowchart and explain how does it help in writing a program?