0

What the output?

int num = 375; double per =3.926; Boolean flag = true; String str = "CS Java"; num = 18+ 4+ (int) 6.78; per *= 2 * 0.6 + (int) 1.9; System.out.printf("-17s-5d%-2.2fan", str, num, per);

30th Oct 2020, 2:56 PM
Ame
Ame - avatar
3 Answers
0
Out put is : "-17s-5d%-2.2fan", CS Java ,28, 8.6372
30th Oct 2020, 3:11 PM
Muhammad Galhoum
Muhammad Galhoum - avatar
+ 2
You can test it for yourself Ame Just paste it in a blank Java code in Code Playground.
30th Oct 2020, 3:22 PM
Ipang