Computer Science, asked by traplord, 24 days ago

1.a) Write a function generatedRowO, the prototype of which is given below, generates a row of the pyramid (as shown in sample input/output and places it in a string. In the pyramid, On stands for One. Tw for Two and so on. The content of each row depends on the row number(R) and total Number of Rows
(NR), where VR<=10. Develop a logic to generate row content as a string(rowstr), given the row number (R) and total Number of Rows (VR).
The prototype of the function is as follows:
void generate ARow/(int R, int NR, char rowstr[));
Note: Do not manipulate the input/rows of the pyramid. Rows should be generated in the function dynamically.
c) After displaying the pyramid, the main program should ask the user to enter a number (M). i If 1 <= M <= NR, display only the M' row. in) If N=0, display all the rows (without mirror). in If N>= NR-1, display all the rows along with their mirror
(as shown in sample input-output).
Write a single complete C program to implement the above

Attachments:

Answers

Answered by DevaanshSh
0

Answer:

sorry I Didn't know the answer

Similar questions