hi can any one tell me how to get this out put this is my code and i need to use for loop :-
*
**
***
****
*****
******
*******
********
*********
**********
this is my code :-
public class star {
public static void main(String [] args) {
for (int i=1; i<=10;i++){
System.out.print('*');
for(int x=1;x<=10;x++) {
System.out.print('*');
}
System.out.println ();
}
}
}