HOW TO FIND SQUARES IN JAVA FROM 1 TO 100 ?
INPUT:-
public class example{
public static void main(String args[]){
int i,f=1;
for(i=1;f<=120;i++)
{
f=f*i;
System.out.println(f);
}
}
}
HOW TO FIND SQUARES IN JAVA FROM 1 TO 100 ?
INPUT:-
public class example{
public static void main(String args[]){
int i,f=1;
for(i=1;f<=120;i++)
{
f=f*i;
System.out.println(f);
}
}
}
0 Comments