JAVA_CODINGS Telegram 52
39. Star Pattern 4.


**
**
**
******
********
**********

class StarPattern4
{

public static void main(String arg[])
{

int num = 12;
int f = 2;
int g = num - 1;

for (int i = 1; i <= (num / 2); i++)
{

for (int j = 1; j <= num; j++)
{

if (j >= f && j <= g)
{

System.out.print(" ");

}
else
{

System.out.print("*");

}
}

f = f + 1;
g = g - 1;

System.out.println();
}
}
}

@java_codings



tgoop.com/java_codings/52
Create:
Last Update:

39. Star Pattern 4.


**
**
**
******
********
**********

class StarPattern4
{

public static void main(String arg[])
{

int num = 12;
int f = 2;
int g = num - 1;

for (int i = 1; i <= (num / 2); i++)
{

for (int j = 1; j <= num; j++)
{

if (j >= f && j <= g)
{

System.out.print(" ");

}
else
{

System.out.print("*");

}
}

f = f + 1;
g = g - 1;

System.out.println();
}
}
}

@java_codings

BY Advance Java πŸ‘¨β€πŸ’»


Share with your friend now:
tgoop.com/java_codings/52

View MORE
Open in Telegram


Telegram News

Date: |

Just as the Bitcoin turmoil continues, crypto traders have taken to Telegram to voice their feelings. Crypto investors can reduce their anxiety about losses by joining the β€œBear Market Screaming Therapy Group” on Telegram. Developing social channels based on exchanging a single message isn’t exactly new, of course. Back in 2014, the β€œYo” app was launched with the sole purpose of enabling users to send each other the greeting β€œYo.” Each account can create up to 10 public channels You can invite up to 200 people from your contacts to join your channel as the next step. Select the users you want to add and click β€œInvite.” You can skip this step altogether. Done! Now you’re the proud owner of a Telegram channel. The next step is to set up and customize your channel.
from us


Telegram Advance Java πŸ‘¨β€πŸ’»
FROM American