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 / 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


Please Help Members By Posting Answers For Below Questions

What are types of structure?

1065


Write a program to swap two numbers without using the third variable?

1016


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

1119


What is array of structure in c?

1098


In C language, a variable name cannot contain?

1222


What does the error 'Null Pointer Assignment' mean and what causes this error?

1159


Difference between MAC vs. IP Addressing

1095


Explain threaded binary trees?

1105


Can a void pointer point to a function?

970


What is the argument of a function in c?

991


What is data structure in c language?

1056


Explain how to reverse singly link list.

1073


What is the difference between c and python?

1104


Explain the use of function toupper() with and example code?

1078


What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

1378