0
Correct me with my code for nested if statement
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner read = new Scanner(System.in); int purchases = read.nextInt(); if(purchases > 15000){ if(purchases > 30000){ System.out.println("Gift card"); } //complete the code }
1 ответ
+ 2
What is it supposed to do? The if-statement already are nested.