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 / sheikh rasel

#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 ?    17 Yes 39 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is null pointer in c?

982


What are identifiers c?

1074


what is the role you expect in software industry?

2142


What is the difference between struct and union in C?

1297


How can you read a directory in a C program?

1137


What are header files in c programming?

1127


Give the rules for variable declaration?

1171


What is the difference between if else and switchstatement

1925


What are the 4 types of unions?

1034


What is difference between function overloading and operator overloading?

1083


What is the difference between exit() and _exit() function?

1041


How are strings stored in c?

1006


Describe explain how arrays can be passed to a user defined function

1093


Write a program to check palindrome number in c programming?

1009


What is a nested loop?

1114