Content-Length: 458 | pFad | https://github.com/sagargoswami2001/Java-Lab-File-Programs/raw/refs/heads/main/Q6_Pyramid_Star.java

gth: 446 //Q6. WAP to Print Pyramid star pattern. package JAVA_Lab_File; public class Q6_Pyramid_Star { public static void main(String[] args) { int n = 5; for (int i = 0; i < n; i++) { for (int j = 0; j < n - i; j++) { System.out.print(" "); } for (int k = 0; k <= i; k++) { System.out.print("* "); } System.out.println(); } } }








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/sagargoswami2001/Java-Lab-File-Programs/raw/refs/heads/main/Q6_Pyramid_Star.java

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy