Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Counter{
- public static void main (String[] args){
- int capacity = 800;
- int passengers = 0;
- String word = "passengers";
- while (passengers > capacity){
- System.out.println(passengers + " " + word);
- passengers++;
- }//end of while
- }//end of main
- }// end fo class
Add Comment
Please, Sign In to add comment