MrDoyle

4) While Loops

Jan 14th, 2021
645
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  1. public class Application {
  2.  
  3.     public static void main(String[] args){
  4.  
  5.         int value = 0;
  6.  
  7.         while (value < 10){
  8.             System.out.println("Hello " + value);
  9.  
  10.             value = value + 1;
  11.  
  12.         }
  13.        
  14.     }
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment