subject
Computers and Technology, 03.09.2021 05:30 leo4687

Write a C program that uses 2 functions: 1) A function that receives as a parameter a positive integer n (n<=9); then prints out a triangular array such that 1st row has 1 element whose value is 1; 2nd has 2 elements whose value is 2 and so on, up to the last row which has n elements.
1
22
333
4444
55555
2) A function that takes 2 parameters
- A value n that represents the no of elements in the longest row of a triangle
- A character c to be printed in place of each element
Your function should produce an inverted isosceles triangle of character c
e. g. for n=7 and c=’*’ the resulting triangle



**

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:00
Let r be a robotic arm with a fixed base and seven links. the last joint of r is a prismatic joint, the other ones are revolute joints. give a set of parameters that determines a placement of r. what is the dimension of the configuration space resulting from your choice of parameters?
Answers: 3
question
Computers and Technology, 24.06.2019 13:00
Think of a spreadsheet as a giant calculator spread of paper chart data collector
Answers: 2
question
Computers and Technology, 24.06.2019 23:00
Aselect query joins tables together by their a. table names. b. primary keys. c. first entries. d. field names.
Answers: 2
question
Computers and Technology, 25.06.2019 01:30
What controls can be found on the file tab of microsoft word
Answers: 1
You know the right answer?
Write a C program that uses 2 functions: 1) A function that receives as a parameter a positive int...
Questions
question
Mathematics, 05.12.2020 14:00
question
Mathematics, 05.12.2020 14:00