Q. Write a C Program to find the number of three digit numbers greater than 100 in which digits appear in strictly increasing order.
e.g. 123, 124, 125, 134, 135, 136, 145, 146, 147,….,689,789. (IIT-JAM-2011)
Source Code:
#include <stdio.h>
#include <conio.h>
int main(void)
{
int i,j,k,temp=0;
clrscr();
for(i=1;i<=9;i++)
{
for(j=1;j<=9;j++)
{
for(k=1;k<=9;k++)
{
if(i<j && j<k)
{
temp++;
printf("\n\n\t Count %d : %d%d%d",temp,i,j,k);
}
}
}
}
getch();
return 0;
}
Output:

Fig.: C Program to find the number of three digit numbers greater than 100 in which digits appear in strictly increasing order.
Version/Compatibility: Turbo C++ Version 3.0 (Borland International, Inc.)


this was best site to me ever see..too good sir,,,
Thanks a lot Jatin for your feedback.. Stay connected with us..