0
Loop
Print the values of x variable 5times If intx=1 x<=___
2 Answers
+ 2
An if statement only executes once. Your code is nonsensical, because you can't just have 2 expressions next to each other
0
for(int x = 1; x <= 5; x++){
System.out.println(x);
}