+ 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 50
quot;); }else{ System.out.print("Try again"); } } } help me with this all aspects are right but still not working

27th Jan 2022, 2:35 PM
Hirdesh Prajapati
Hirdesh Prajapati - avatar
3 odpowiedzi
+ 3
It's $200 not 200$ and same goes to $50
27th Jan 2022, 2:44 PM
Simba
Simba - avatar
+ 1
thanks man
27th Jan 2022, 2:50 PM
Hirdesh Prajapati
Hirdesh Prajapati - avatar
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
19th Apr 2023, 6:24 AM
Jesse Wasike
Jesse Wasike - avatar