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
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers
How can you be sure that a program follows the ANSI C standard?
What are the types of unary operators?
Explain argument and its types.
Can you write the algorithm for Queue?
What is spark map function?
Who developed c language and when?
Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given
What extern c means?
What is the difference between local variable and global variable in c?
Is it possible to have a function as a parameter in another function?
Are global variables static in c?
main() { printf("hello"); fork(); }
How is = symbol different from == symbol in c programming?
Do you know the difference between malloc() and calloc() function?