+ 1
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner read = new Scanner
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 % 10 == 0 && number % 9 == 0 ){ System.out.println("You won 200
quot;); }else if(number % 4 == 0||number % 6 == 0){ System.out.println("You won 50quot;); }else{ System.out.print("Try again"); } } } help me with this all aspects are right but still not working3 Answers
+ 3
It's $200 not 200$ and same goes to $50
+ 1
thanks man
0
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner read = new Scanner(System.in);
int population = read.nextInt();
int area = read.nextInt();
if (population<10000 && area <10000 ){
system.output.println("small country");
}
what is the problem with my answer