daily pastebin goal
22%
SHARE
TWEET

While Looping

rafibatam Jan 21st, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class WhileLooping {
  2.     public static void main(String[] args) {
  3.         int i = 0;
  4.        
  5.         while(i <= 10) {
  6.             System.out.println("Perulangan ke " + i);
  7.            
  8.             i++;
  9.         }
  10.     }
  11. }
  12.  
  13.  
  14. Note : Jangan lupa ditulis "i++", kalau lupa maka akan terus looping sampai komputer anda ngehang :D
  15. from Petanikode.com
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top