Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. public class NestedLoop
  2. {
  3. public static void main(String[] args)
  4. {
  5. for(int i = 0; i <= 3; i++)
  6. {
  7. for(int j = 0; j <= 2; j++)
  8. {
  9. System.out.println(i + " " + j);
  10. System.out.println("---end of inner loop iteration---");
  11.  
  12. }
  13. System.out.println("---end of outer loop iteration---");
  14. }
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement