How do I solve this illegal start of expression erroršŸ˜­ | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

How do I solve this illegal start of expression erroršŸ˜­

https://code.sololearn.com/cD1SRwTQ7D4I/?ref=app

11th Jan 2023, 3:55 PM
Vishesh Kumar
2 Respostas
+ 1
Remove semicolons from if cases and also take care of parentheses import java.util.*; class UserInputDemo { public static void main(String[] args) { Scanner sc = new Scanner (System.in); int a,b,c; a=sc.nextInt(); b=sc.nextInt(); c=sc.nextInt(); if (a+b+c==180) { if ((a==90||b==90||c==90)&&(a==b||b==c||a==c)) { System.out.println("ISOSCELES RIGHTāˆ†"); } if(a==90||b==90||c==90) System.out.println("Right āˆ†"); } } }
11th Jan 2023, 4:32 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
Check in line 13: * ==, not = * count the number of parentheses: There are unmatched parentheses in the expression
11th Jan 2023, 4:24 PM
Lisa
Lisa - avatar