Question: What is printed by the following block of Java code? { int sum = 0 ; int x = 1 0 0 ; int iVals
What is printed by the following block of Java code?
int sum ;
int x ;
int iVals new intx;
for int i ; i x; i
iValsi i;
for int i x ; i x; i
sum iValsi;
System.out.printlnsum;
a
b
c
d
e
None of the above
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
