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 are c identifiers?
What is string function in c?
Why do we use int main instead of void main in c?
Write a program with dynamically allocation of variable.
How do I round numbers?
What are unions in c?
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
What is the method to save data in stack data structure type?
Write a progarm to find the length of string using switch case?
Can you subtract pointers from each other? Why would you?
What are the rules for identifiers in c?
Why c is called object oriented language?
What is the maximum no. of arguments that can be given in a command line in C.?
What is define c?
Which programming language is best for getting job 2020?