ASSALAM o alaikum
Code:
public class StarPattern {
public static void main(String[] args){
StarPattern starPattern= new StarPattern();
starPattern.MyPattern();
}
void MyPattern(){
for(int row=1;row"lessThanSign"=5;row++){
for(int col=1;col"LessThanSign"=row;col++){
System.out.print("*");
}
System.out.print("\n");
}
}
}
For complaints/suggestions:
mshahzaib6699@gmail.com
On this page of the site you can watch the video online How to draw simple star pattern in Java with a duration of hours minute second in good quality, which was uploaded by the user Muhammad Shahzaib 14 July 2024, share the link with friends and acquaintances, this video has already been watched 13 times on youtube and it was liked by 4 viewers. Enjoy your viewing!