Butterfly Pattern in Java

preview_player
Показать описание
Butterfly pattern video based upon the star pattern video made earlier..
Made on special request by my students who wanted to learn butterfly pattern based upon the star pattern video made earlier.
#shorts
Рекомендации по теме
Комментарии
Автор

Superb ma'am, simply explained, thanks ma'am, keep it up. 🙏👏👏🤟🤟🎊🎉

pramodsitaprao
Автор

collection framework pe v videos chiye the.

rishikaprasad
Автор

Mam we have ISC exam on 20th march...please make a video for doing any number program using recursion...mainly the blueprint for cracking any recursion programs ISC.

AJ-duse
Автор

Please continue in Java Mam we have interview

royalgun
Автор

Ma'am we want new videos of class 11th strings, list, tuples, dictionary program 🥺🙏

uuuuu
Автор

Ma'am please post videos for python 12 also

umangsrivastava
Автор

mam please make a video series on dsa my interviews are coming

Adityaverma-gboe
Автор

Hi mam, i i have a patter like below how to manage spaces for double digits and single digits
12 11 10 9 8
11 10 9 8
10 9 8
9 8
8

Do you use something like if number greater than or euqals to 10 use three spaces and use two spaces if number less than 10?

OODevelopers
Автор

what about star only one at center? in your case two star at center!!!

MdFaizanEqbal
Автор

my both parts are printing on same side

pirategaming
Автор

Mera dono part Ek hi taraf print ho raha hai

pirategaming
Автор

ma'am also make a video on hollow butterfly pattern and please recheck the code of the given butterfly pattern..in your video...




public class Main {
public static void main(String arg[]) {
int n = 5;
for (int i = 1; i < n; i = i + 1) {
for (int j = 1; j <= i; j = j + 1) {
System.out.print("* ");
}
for (int j = i; j < n; j = j + 1) {
System.out.print(" ");
}
for (int j = i; j < n; j = j + 1) {
System.out.print(" ");
}
for (int j = 1; j <= i; j = j + 1) {
System.out.print("* ");
}
System.out.println();
}
for (int i = 1; i <= n; i = i + 1) {
for (int j = i; j <= n; j = j + 1) {
System.out.print("* ");
}
for (int j = 1; j < i; j = j + 1) {
System.out.print(" ");
}
for (int j = 1; j < i; j = j + 1) {
System.out.print(" ");
}
for (int j = i; j <= n; j = j + 1) {
System.out.print("* ");
}
System.out.println();
}
}

}

khushikunwar
welcome to shbcf.ru