Tricky Star Hyphen Combination Pattern Program in Java

Below Java concepts are used to print that patterns

  • For Loop
  • While Loop
  • if..else

1). Program to print left half diamond pattern using star(*) and hyphen(-) in Java

star hyphen combination pattern program in c

Output

left half diamond pattern using star and hyphen in c

2). Program to print right half diamond pattern using star(*) and hyphen(-) in Java

star hyphen combination pattern program in c

Output

right half diamond pattern using star and hyphen in C

3). Program to print Triangle pattern using star(*) and hyphen(-) in Java

star hyphen combination 3 pattern program in C

Output

4). Program to print full diamond pattern using star(*) and hyphen(-) in Java

star hyphen combination full pattern program in c

Output

Leave a Comment