Rewrite the following programme segment using while loop statement.
Int f = 1, i ;
for( i = 1 ; i < = 5 ; i + + )
{
f * = i ;
System.out.println (f) ;
}
Answers
Answered by
0
Answer:
int f=1;
for(into I=1;I<=5;I++)
{
f×=I;
System.out.println(f);
}
Explanation:
Hope it helps :D
Similar questions