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

Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1172


What will the preprocessor do for a program?

1028


Is it acceptable to declare/define a variable in a c header?

1068


What is a stream?

1090


What do mean by network ?

1111


What is the most efficient way to count the number of bits which are set in an integer?

1012


The __________ attribute is used to announce variables based on definitions of columns in a table?

1148


What are the key features in c programming language?

1021


What is enumerated data type in c?

1041


explain what is a newline escape sequence?

1047


Which is better oop or procedural?

1004


Can we declare variable anywhere in c?

927


How will you declare an array of three function pointers where each function receives two ints and returns a float?

1309


how to make a scientific calculater ?

2023


How many bytes is a struct in c?

1116