Write a program in c to input a 5 digit number and print it
in words.
Answers were Sorted based on User's Feedback
Answer / vignesh1988i
#include<stdioi.h>
void main()
{
int n,count=0,a[20];
scanf("%d",&n);
for(i=0;n>0;i++)
{
a[i]=n%10;
n=n/10;
count++;
}
for(i=0;i<count;i++)
{
switch(a[i])
{
case 1:
printf("one");
break;
case 2:
printf("two");
break;
like this print upto case 0 , (ie) after case 9 ... put
case 0.... and finish the switch and close the loop.......
| Is This Answer Correct ? | 119 Yes | 186 No |
Explain what are bus errors, memory faults, and core dumps?
What is c language and why we use it?
WHAT IS LOW LEVEL LANGUAGE?
What is identifiers in c with examples?
Write a c program to read a positive number and display it in words.? ex: 123=one two three help me....
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
main() { int i = -3,j=2,k=0,m; m= ++i || ++j && ++k; printf("%d%d%d",i,j,k,m); }
What is the default value of local and global variables in c?
How to find a missed value, if you want to store 100 values in a 99 sized array?
#include<conio.h> #include<stdio.h> void main() { int i; if(1,0,2,3) { printf("if"); } else { printf("else"); } getch(); } Can any body tell the answer of this question with explanation?
How are Structure passing and returning implemented by the complier?