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 ответов
+ 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