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);
3 Answers
0
Out put is :
"-17s-5d%-2.2fan", CS Java ,28, 8.6372
+ 2
You can test it for yourself Ame
Just paste it in a blank Java code in Code Playground.