Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main
- {
- public static void main( String args[] )
- {
- int square = 6;
- int line = 0;
- while (line<=square) {
- int s = 1;
- while ( s <square-line ){
- System.out.print( " " );
- s = s + 1;
- while (s<=square) {
- System.out.print("*");
- s = s + 1;
- }
- System.out.println("");
- line=line+1;
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment