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 Answers
+ 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