0

What is wrong here??

x=3 if x == 3; print("Yes") else; print("No")

10th Feb 2019, 9:29 AM
Mizhan Adhikary
Mizhan Adhikary - avatar
3 Antworten
+ 1
Use colons instead of semi-colons
10th Feb 2019, 9:39 AM
Random
Random - avatar
+ 1
The mistake is the semicolon after if and else statement => replace it with ":". You can see the right code here https://code.sololearn.com/cwHXRti3tsVN/?ref=app
10th Feb 2019, 9:40 AM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
0
Syntax errors, X = 3 If(X == 3) Printf("yes"); Else Printf("No");
10th Feb 2019, 11:38 AM
Ms DhONi
Ms DhONi - avatar