program that accepts amount in figures and print that in
words

Answers were Sorted based on User's Feedback



program that accepts amount in figures and print that in words..

Answer / shilpa

int num, temp,lastnumber[100];

num=12345;
temp=num;
for(int i=1;temp==0;i++)
temp=temp/10; //to check how many digits are there
// even if zero is included in it like 10004
// so number of digits is equal to i;
temp=num;
for(int j=1;i==j;j++)
{
num=num/10; // since num is integer it will exculde the decimal
num=num*10; // exclude number will be replaced by zero
lastnumber[j]=temp-num;
temp=num;
}

Is This Answer Correct ?    5 Yes 3 No

program that accepts amount in figures and print that in words..

Answer / prachi.ktr121

programming

Is This Answer Correct ?    4 Yes 10 No

Post New Answer

More C Interview Questions

Input any no. and print all the the numbers that comes before it like this for e.g input = 4 0 01 012 0123 01234 plz answer it 2day

3 Answers  


Can you write the algorithm for Queue?

0 Answers   College School Exams Tests, TCS,


Efficient data structure for store/search list of 1000 records a)array b)double linked list c)circular queue d)hash table

3 Answers   Value Labs,


write a program to gat the digt sum of a number (et. 15= >1+5=6)

2 Answers  


Explain how do you override a defined macro?

0 Answers  






the question is that what you have been doing all these periods (one year gap)

0 Answers   HCL,


Differentiate between #include<...> and #include '...'

0 Answers  


How can I get the current date or time of day in a c program?

0 Answers  


what is the output of the following program? main() { int c[]={2,8,3,4,4,6,7,5}; int j,*p=c,*q=c; for(j=0;j<5;j++) { printf("%d",*c); ++q; } for(j=0;j<5;j++) { printf("%d",*p); ++p; } }

4 Answers  


#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?

3 Answers   Huawei,


write a program that eliminates the value of mathematical constant e by using the formula e=1+1/1!+1/2!+1/3!+

1 Answers   Reliance,


what is difference between ANSI structure and C99 Structure?

1 Answers   Wipro,


Categories