Sponsor

banner image

recent posts

Write a program in java to display three digits well ordered numbers. example-numbers whose digits increase from left to write



import java.util.*;
class print
{
public static void main(String args[])
{
int i,j,k;
for(i=1;i<=7;i++)
{
for(j=i+1;j<=8;j++)
{
for(k=j+1;k<=9;k++)
{
System.out.print("number");
System.out.print(i);
System.out.print(j);
System.out.print(k);
System.out.println();
}
}
}
}
}


     OUTPUT:










 







Write a program in java to display three digits well ordered numbers. example-numbers whose digits increase from left to write Write a program  in java to display three digits well ordered numbers. example-numbers whose digits increase from left to write  Reviewed by Aishwarya chauhan on 1:07 AM Rating: 5

No comments:

Powered by Blogger.