Question: Write a for loop that will print out all the multiplesof 3 from 3 to 36. My code is: for ( N = 3; N

Write a for loop that will print out all the multiplesof 3 from 3 to 36.

My code is:

  for ( N = 3;  N <= 36;  N = N + 3 ) {            System.out.println( N );        }

but it doesnt work.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer class te... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Electrical Engineering Questions!