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 c program to accept a given integer value and print
its value in words

Answer Posted / uday

#include<stdio.h>
int main()
{
int n;
clrscr();
printf("\nenter a integer number::");
scanf("%d",&n);
switch(n)
{
case:1
printf("\nOne");
break;
case:2
printf("\nTwo");
break;
case:3
printf("\nThree");
break;
case:4
printf("\nFour");
brak;
case:5
printf("\nFive");
break;
case:6
printf("\nSix");
break;
case:7
printf("\nSeven");
break;
case:8
printf("\nEight");
break;
case:9
printf("\nNine");
break;
default:
printf("\nSorry");
}
getch();
}

Is This Answer Correct ?    19 Yes 41 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is uint8 in c?

1106


what is the format specifier for printing a pointer value?

1025


how to find binary of number?

4456


Can include files be nested?

1118


How many levels of pointers can you have?

1198


What are integer variable, floating-point variable and character variable?

1263


What are the salient features of c languages?

1101


Explain two-dimensional array.

1084


How do I send escape sequences to control a terminal or other device?

1081


What are the advantages and disadvantages of a heap?

1217


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1642


What are header files and explain what are its uses in c programming?

1135


Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?

1079


What are data structures in c and how to use them?

1174


How do you print an address?

1275