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 / sachin patel

#include<stdio.h>
#include<conio.h>
void main()
{
int no;
printf("Enter the no");
scanf("%d",&no);
switch(no)
{
case 1:
printf("One");
break;
case 2:
printf("Two");
break;
case 3:
printf("Three");
break;
case 4:
printf("Four");
break;
case 5:
printf("Five");
break;
case 6:
printf("Six");
break;
case 7:
printf("Seven");
break;
case 8:
printf("Eight");
break;
case 9:
printf("Nine");
break;
default:
printf("You entered Wrong input");
break;
}
}

Is This Answer Correct ?    8 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain a pre-processor and its advantages.

1190


Why is extern used in c?

1145


Why structure is used in c?

1238


int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1927


What is the difference between functions abs() and fabs()?

1207


How would you rename a function in C?

1090


How can I make sure that my program is the only one accessing a file?

1347


Is it possible to initialize a variable at the time it was declared?

1257


What are pointers in C? Give an example where to illustrate their significance.

1272


What is meant by int main ()?

1255


Can a pointer be static?

1131


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1992


What is echo in c programming?

1092


What is string function in c?

1049


Write a program to print factorial of given number without using recursion?

1043