Question: public class Main { public static void main ( String [ ] args ) { / / Use a simple loop to print 4 9

public class Main {
public static void main(String[] args){
// Use a simple loop to print 49,25,9
for (int i =7; i >=3; i -=2){
System.out.print(i * i +"");
}
}
}
what is the output of this code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Programming Questions!