TOPIC

Wrong Answer (40%)

Rafael Reis asked 1 year ago

import java.util.Scanner;

class Main {
  public static void main(String[] args) {

    Scanner input = new Scanner(System.in);

    int numberOfTest = input.nextInt();

    for (int i = 0; i < numberOfTest; i++){
      int valueOfPower = input.nextInt();
      if (valueOfPower >= 100 && valueOfPower <= 100000)
        if(valueOfPower <= 8000)
          System.out.println("Inseto!");
        else
          System.out.println("Mais de 8000!");      
    };
    input.close();
    }
  }

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.