fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.Scanner;
  4.  
  5. /* Name of the class has to be "Main" only if the class is public. */
  6. class Ideone
  7. {
  8. public static void main (String[] args) throws java.lang.Exception
  9. {
  10. Scanner input=new Scanner(System.in);
  11. int j,i;
  12.  
  13.  
  14. for( i=1;i<5;i++){
  15. for(j=5;j>i;j--)
  16. System.out.println(i+j);
  17. }
  18. }// your code goes here
  19. }
  20.  
Success #stdin #stdout 0.14s 54556KB
stdin
Standard input is empty
stdout
6
5
4
3
7
6
5
8
7
9