program that accepts amount in figures and print that in
words
Answers were Sorted based on User's Feedback
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 |
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
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
write a program to gat the digt sum of a number (et. 15= >1+5=6)
Explain how do you override a defined macro?
the question is that what you have been doing all these periods (one year gap)
Differentiate between #include<...> and #include '...'
How can I get the current date or time of day in a c program?
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; } }
#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?
write a program that eliminates the value of mathematical constant e by using the formula e=1+1/1!+1/2!+1/3!+
what is difference between ANSI structure and C99 Structure?