Rewrite the following loop using for loop
int m=1;
while(m<5)
{
System.out.print(“*”);
m++;
}
Answer in Icse java
Answers
Answered by
1
for(int m=1;m<5;m++)
System.out.println("*");
Similar questions