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

Write a c program to build a heap method using Pointer to function and pointer to structure ?

4622


How reliable are floating-point comparisons?

1034


How to get string length of given string in c?

1010


What is scanf_s in c?

1067


What are the disadvantages of c language?

1121


What is %d used for?

992


What are valid signatures for the Main function?

1170


how to write optimum code to divide a 50 digit number with a 25 digit number??

3204


Why calloc is better than malloc?

973


What is ## preprocessor operator in c?

1025


The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this

3505


Why c language?

1006


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon

5895


How can I handle floating-point exceptions gracefully?

1108


how to capitalise first letter of each word in a given string?

1871