Advertisement
Guest User

Vending Machine

a guest
Apr 7th, 2020
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. package cz.czechitas.beginnerjava.homework;
  2.  
  3. public class VendingMachine {
  4.    
  5.     public static void main(String[] args) {
  6.         VendingMachine myApp = new VendingMachine();
  7.         myApp.run();
  8.     }
  9.  
  10.     public void run() {
  11.         System.out.println("Hello we are going to start a Multiplacation Table");
  12.        
  13.         int counter;
  14.         for (counter = 0; counter < 9; counter++) {
  15.             System.out.println("Vending machine " + (counter + 1)*(11));
  16.        
  17.         }
  18.            
  19.        
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement