JAVA
java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner read = new Scanner(System.in);
int number = read.nextInt();
//your code goes here
if(number % 9 == 0 && number%10==0 ){System.out.println("You won $200".);}
if (number%4==0 || number%6==0){System.out.println("You won $50".);}
else
{System.out.println("Try again".);}
}
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run