Advertisement
sergAccount

Untitled

Jun 26th, 2021
908
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.61 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.ex11;
  7.  
  8. /**
  9.  *
  10.  * @author student
  11.  */
  12. public class Main {
  13.    
  14.     public static void main(String[] args) {                
  15.         // 6) do-while  
  16.         int n = 10;
  17.         do {
  18.             System.out.println("n=" + n);
  19.             n--;
  20.         } while (n>10);
  21.        
  22.         // операторы управления: if-else, for, while, do-while, break, continue
  23.        
  24.     }    
  25. }
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement