0

Need Help in jave Program

The biggest number among 3 number input https://code.sololearn.com/c9RZ4e6jNBnr/?ref=app

27th Feb 2022, 2:31 PM
Karan singh
Karan singh - avatar
3 Respostas
+ 2
Karan singh You have to assign string value to a string variable so do this: String abc = (a > b || a > c) ? "a is largest number" : (b > c) ? "B is big" : "c is big"; System.out.println (abc);
27th Feb 2022, 2:34 PM
A͢J
A͢J - avatar
+ 1
Karan singh println is a void method so you cannot assign to a integer variable.
27th Feb 2022, 2:32 PM
A͢J
A͢J - avatar
0
A͢J write the right code Please 🙏
27th Feb 2022, 2:33 PM
Karan singh
Karan singh - avatar