Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the use of pointers in C?

1136


Can you think of a logic behind the game minesweeper.

2522


Why header file is used in c?

1162


write a program to concatenation the string using switch case?

2156


Why doesnt that code work?

1279


Tell me about low level programming languages.

1191


What are the disadvantages of a shell structure?

1428


What is the difference between Printf(..) and sprint(...) ?

1640


#include { printf("Hello"); } how compile time affects when we add additional header file .

1943


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

1790


Define Array of pointers.

1158


Can you mix old-style and new-style function syntax?

1158


Is main is user defined function?

1214


When should the const modifier be used?

1155


The statement, int(*x[]) () what does in indicate?

1205