Computer Science, asked by Anonymous, 1 month ago

Write the output for the following
a. int j,f=0;
for( j=1;j<=10;j+=2)
f=f+j;
System.out.println(“Sum=”+f);
System.out.println(j+10);

Answers

Answered by ritikasingh9940
1

Answer:

a. int j,f=0;

for( j=1;j<=10;j+=2)

f=f+j;

System.out.println(“Sum=”+f);

System.out.println(j+10)

Similar questions