Task: | Karkit |
Sender: | user2874 |
Submission time: | 2021-10-12 09:39:42 +0300 |
Language: | Java |
Status: | COMPILE ERROR |
Compiler report
input/vastaus.java:9: error: ')' expected if(kolmas<toka{ ^ 1 error
Code
import java.util.Scanner; public class vastaus { public static void main (String [] args){ Scanner lukija = new Scanner(System.in); int eka = Integer.valueOf(lukija.nextLine()); int toka = Integer.valueOf(lukija.nextLine()); int kolmas = Integer.valueOf(lukija.nextLine()); int neljas = Integer.valueOf(lukija.nextLine()); if(kolmas<toka{ if(neljas<kolmas){ System.out.println(neljas/eka); } else{ System.out.println(kolmas/eka); } }else{ System.out.println(toka/eka); } } }