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 / sm1
#include<stdio.h>
int main(){
int i,j,k;
for (i=1; i<8; i++)
for (j=i+1; j<9; j++)
for (k=j+1; k< 10; k++)
printf("%d\n", i*100+j*10+k);
}
| Is This Answer Correct ? | 19 Yes | 12 No |
Post New Answer View All Answers
Why does this code crash?
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
Explain how can type-insensitive macros be created?
What is switch in c?
What are the primitive data types in c?
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
What is the difference between fread and fwrite function?
What is main () in c?
what do the 'c' and 'v' in argc and argv stand for?
What is dangling pointer in c?
using only #include
can any one provide me the notes of data structure for ignou cs-62 paper
Is Exception handling possible in c language?
What is a program flowchart and how does it help in writing a program?