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

What is .obj file in c?

0 Answers  


write a program to print calender using for loop.

1 Answers   HCL, TCS,


main() { char x; while(x=0;x<=255;x++) printf("\nAscii value %d Charater %c",x,x); }

2 Answers  


Explain how can I pad a string to a known length?

0 Answers  


Is printf a keyword?

0 Answers  






Write a c program to print the even numbers followed by odd numbers in an array without using additional array

1 Answers   Tech Mahindra,


write a program to find the frequency of a number

4 Answers   Infosys,


2.main { int x,j,k; j=k=6;x=2; x=j*k; printf("%d", x);

9 Answers   HCL, Tech Mahindra,


how many keywords do C compile?

7 Answers   Microsoft, Practical Viva Questions,


An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

0 Answers  


write a c prog for removing duplicate character from an array and sorting remaining elements using a single array

1 Answers  


Function to find the given number is a power of 2 or not?

20 Answers   Motorola, nvidia,


Categories