skipter

Clock from 5:00 to 0:00

Apr 4th, 2017
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Main {
  4.     public static void main(String[] args) throws InterruptedException {
  5. //      Scanner input = new Scanner(System.in);
  6. //       int n = Integer.parseInt(input.nextLine());
  7.  
  8.         for (int i = 300 ; i >= 0 ; i--) {
  9.             System.out.printf("%02d:%02d%n", i / 60, i % 60);
  10.             System.out.println();
  11.             Thread.sleep(1000);
  12.         }
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment