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

Is that possible to add pointers to each other?

1375


What do you mean by command line argument?

1180


What is call by reference in functions?

1450


Write a program to print "hello world" without using a semicolon?

1062


Explain 'far' and 'near' pointers in c.

1142


What are valid signatures for the Main function?

1236


Explain how can I write functions that take a variable number of arguments?

1081


Can you define which header file to include at compile time?

1022


Explain how do you print only part of a string?

1222


What does main () mean in c?

1099


Why malloc is faster than calloc?

1066


What is the difference between constant pointer and constant variable?

1224


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

1637


What is default value of global variable in c?

994


Write a program to swap two numbers without using third variable?

1301