Question: ansci c code* Create a function called pyramid. Using a for loop, display to the screen, the string containing your name so that each loop
Create a function called pyramid. Using a for loop, display to the screen, the string containing your name so that each loop will NOT contain the first and the last character from the previous line, with the length of the string being printed, and the string surrounded by equare brackes [] NOTE: Every function dealing with your name, MUST be called from main, PASSING your name to it Example: 32 [George $ Washington % Rodriguez]] 30 [eorge \$ Washington % Rodriguez] 28 [orge \$ Washington % Rodrigue] 26 [rge \$ Washington % Rodrigu] 24 [ge \$ Washington % Rodrig] 22 [e \$ Washington % Rodri] 20 [ \$ Washington % Rodr] 18[$ Washington % Rod] 16 [Washington % Ro] 14 [Washington % R] 12 [ashington % ] 10 [shington % ] 8 [hington ] 6 [ington] 4 [ngto] 2 [gt] 0 []]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
