Guest User

Untitled

a guest
May 24th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. public class Counter{
  2. public static void main (String[] args){
  3. int capacity = 800;
  4. int passengers = 0;
  5. String word = "passengers";
  6. while (passengers > capacity){
  7.  
  8. System.out.println(passengers + " " + word);
  9. passengers++;
  10. }//end of while
  11.  
  12.  
  13. }//end of main
  14.  
  15. }// end fo class
Add Comment
Please, Sign In to add comment