Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int day = scanner.nextInt();
- int month = scanner.nextInt();
- int year = scanner.nextInt();
- System.out.println(day + "/" + month + "/" + year);
- if (day * month == year)
- {
- System.out.println("The date is magic");
- }
- else
- {
- System.out.println("The date is not magic ");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment