Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Ellevon Shairrick
- Mrs. Regan
- Debug A Program
- 1/14/2020 */
- import java.util.Scanner;
- public class Program {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- int seconds;
- System.out.println("How many seconds until liftoff?");
- seconds = sc.nextInt();
- while(seconds > 1) {
- seconds --;
- System.out.println(seconds + "!");
- if(seconds == 1) {
- System.out.println("Blastoff!");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement