Computer Science, asked by saimasharma14, 16 days ago

What will be the output of this program? for(i=1;i<5;i++){System.out.print("Computer,");} (2)

Answers

Answered by madhulika172
1

Answer:

this statement will output computer 4 times without space in the same line

Answered by KeshavNadgeri
0

Explanation:

As per Java compilation the output will be -

Computer

Computer

Computer

Computer

Errors in java - dont put semicolon after any bracket of for loop, you may get an error...

hope this helps...

Similar questions