the number 138 is called well ordered number because the
three digits in the number (1,3,8) increase from left to right
(1<3<8). the number 365 is not well ordered coz 6 is larger
than 5.
write a program that wull find and display all possible
three digit well ordered numbers.
sample:
123,124,125,126,127,128,129,134
,135,136,137,138,139,145,146,147
148
149,156.......789
Answer Posted / santosh kumar
for(int i=0;i<8;i++)
for(int j=i+1;j<9;j++)
for(int k=j+1;k<10;k++)
printf("%d\t", i*100+j*10+k);
| Is This Answer Correct ? | 7 Yes | 15 No |
Post New Answer View All Answers
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
What is a ternary operator in c?
In c programming language, how many parameters can be passed to a function ?
`write a program to display the recomended action depends on a color of trafic light using nested if statments
How to declare pointer variables?
What is the easiest sorting method to use?
How many bytes are occupied by near, far and huge pointers (dos)?
please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics
What is zero based addressing?
What does printf does?
What is the use of extern in c?
plz let me know how to become a telecom protocol tester. thank you.
What does the message "automatic aggregate intialization is an ansi feature" mean?
What is FIFO?
What is the difference between memcpy and memmove?