Incrementing While Loops

PHOTO EMBED

Mon Oct 31 2022 04:26:44 GMT+0000 (Coordinated Universal Time)

Saved by @cruz #javascript

class Coffee {
  
  public static void main(String[] args) {
    
    // initialize cupsOfCoffee
    int cupsOfCoffee = 1;
    // add while loop with counter
    while(cupsOfCoffee <= 100){
      cupsOfCoffee++;
      System.out.println("Fry drinks cup of coffee #"+cupsOfCoffee);
    }
        
    
  }
  
}
content_copyCOPY