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, 22.06.2019 13:30
Use the keyword strategy to remember the meaning of the following word. the meaning for the word has been provided. write your keyword and describe the picture you would create in your mind. centurion: a commander in the army of ancient rome. keyword: picture:
Answers: 2
question
Computers and Technology, 22.06.2019 19:10
What a backup plan that you have created in a event you encounter a situation
Answers: 2
question
Computers and Technology, 23.06.2019 09:10
(328 inc. 448 ind. 480 in25. john has a collection of toy cars. he has 2 red cars, 4 blue cars, 4 black cars, and 6 yellowcars. what is the ratio of red cars to yellow cars? a. 1: 2b. 1: 3c. 1: 626. the net of a right triangular prism is shown below.
Answers: 2
question
Computers and Technology, 23.06.2019 17:00
1. which of the following is not an example of an objective question? a. multiple choice. b. essay. c. true/false. d. matching 2. why is it important to recognize the key word in the essay question? a. it will provide the answer to the essay. b. it will show you a friend's answer. c. it will provide you time to look for the answer. d. it will guide you on which kind of answer is required.
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.05.2020 07:29
question
Social Studies, 05.05.2020 07:29
question
Mathematics, 05.05.2020 07:29
Questions on the website: 13722360