Or Operator Challenge
Hello i need help in the Challenge "lucky winner" Java Lesson 14.2 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 %6==0 || number%4==0){ System.out.println("You won $50"); } else { System.out.println("Try Again"); } } } This is what i wrote but in the cases they won 200 Dollar. Both cases the 50 and 200 are true. And thats what i know cause its easy maths. But what do i have to do that it will only show "You won 200" Reminder only case 2 and 4 are right from 5