Advertisement
heysoul_sisypus

nested loop

Feb 6th, 2020
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6.  
  7. package javaapplication114;
  8. import java.util.*;
  9. /**
  10.  *
  11.  * @author Student
  12.  */
  13. public class JavaApplication114 {
  14.     public static void main(String[] args) {
  15.        
  16.     for(int i=1;i<=3;i++){for(int j=1;j<=3;j++){System.out.println(i);}}  
  17.    
  18.     }
  19.    
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement