Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Why c is called free form language?

1020


write an algorithm to display a square matrix.

2705


What is mean by data types in c?

1028


How many data structures are there in c?

1113


Does c have an equivalent to pascals with statement?

997


Does * p ++ increment p or what it points to?

1117


Who is the founder of c language?

1162


What is volatile c?

1020


What is the value of h?

1039


Write a program to check palindrome number in c programming?

1013


What is wrong with this program statement?

1035


Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1091


Stimulate calculator using Switch-case-default statement for two numbers

2985


How can you pass an array to a function by value?

1120


Explain the properties of union.

1080