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

FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.

1206


I have a varargs function which accepts a float parameter?

583


Can a pointer be volatile in c?

539


Explain how do you determine whether to use a stream function or a low-level function?

632


Explain what is a static function?

634






What is a struct c#?

607


Why does the call char scanf work?

622


p*=(++q)++*--p when p=q=1 while(q<=6)

1272


What do you know about the use of bit field?

614


What does %p mean?

603


What is string constants?

664


Can a file other than a .h file be included with #include?

688


What is the difference between new and malloc functions?

584


What is spark map function?

585


Why is c fast?

612