Advertisement
sergAccount

Untitled

Aug 9th, 2020
929
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.79 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. package com.mycompany.app8;
  7.  
  8. /**
  9.  *
  10.  * @author Admin
  11.  */
  12. public class Test1 {
  13.    
  14.     // \t
  15.     public static void main(String[] args) {
  16.         // for
  17.         for (int i = 0; i < 5; i++) {                                    
  18.             System.out.println("внешний цикл");
  19.             System.out.println(i);
  20.             // вложенный цикл
  21.             for (int j = 0; j < 10; j++) {
  22.                 System.out.println("\tвнутренний цикл");
  23.                 System.out.println(j);                                                
  24.             }
  25.         }
  26.     }
  27. }
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement