Write a java program to print the following triangular pattern:-
*
* *
* * *
* * **
* * * * *
Answers
Answered by
0
Explanation:
print ("*")
print(* *)
print(* * *)
Answered by
0
Answer:
class pattern{ //declare class
public static void main(String []args){ //declare main function
for (int i = 0; i < 6; i++){ //declare for loop (1)
for (int j = 0; j < i; j++){ //declare for loop(2)
System.out.print("*");
} //end of for loop (1)
System.out.println( );
} //end of for loop (2)
} //end of main function
} //end of class
Similar questions