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
Why c is called free form language?
write an algorithm to display a square matrix.
What is mean by data types in c?
How many data structures are there in c?
Does c have an equivalent to pascals with statement?
Does * p ++ increment p or what it points to?
Who is the founder of c language?
What is volatile c?
What is the value of h?
Write a program to check palindrome number in c programming?
What is wrong with this program statement?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
Stimulate calculator using Switch-case-default statement for two numbers
How can you pass an array to a function by value?
Explain the properties of union.