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
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.
I have a varargs function which accepts a float parameter?
Can a pointer be volatile in c?
Explain how do you determine whether to use a stream function or a low-level function?
Explain what is a static function?
What is a struct c#?
Why does the call char scanf work?
p*=(++q)++*--p when p=q=1 while(q<=6)
What do you know about the use of bit field?
What does %p mean?
What is string constants?
Can a file other than a .h file be included with #include?
What is the difference between new and malloc functions?
What is spark map function?
Why is c fast?