iZhirO

For

Nov 11th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.82 KB | None | 0 0
  1. public class belajarfor {
  2.     public static void main(String[] args) {
  3.            
  4.         System.out.println("Vocation Planing");
  5.        
  6.         for(int voc = 1 ; voc <= 4 ; voc++) {
  7.             System.out.printf("Planing no %d : ",voc);
  8.        
  9.             for(int w = 1 ; w <= 4 ; w++) {
  10.                 if(voc == 1) {
  11.                     System.out.print("Labuan Bajo");
  12.                     break;
  13.                 }else if(voc == 2) {
  14.                     System.out.print("Raja Ampat");
  15.                     break;
  16.                 }else if(voc == 3) {
  17.                     System.out.print("Toraja");
  18.                     break;
  19.                 }else {
  20.                     System.out.print("Mahameru");
  21.                     break;
  22.                 }          
  23.             }
  24.         System.out.println();
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment