Opening the reading…
Opening the reading…
DSA FUNDAMENTALS › CONTROL FLOW
This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.
TASK
Complete the Java program so it prints the n = 4 centered solid star pyramid exactly, with three leading spaces and one star on row 1, then two leading spaces and three stars, one leading space and five stars, and seven stars on row 4. Do not print an extra space or blank line.
OUTPUT
Sample* *** ***** *******
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.