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 16:30
20 points archie wants to use a reflector as he photographs a newlywed couple. what would he consider in his choice? a. shadow and sunny b. homemade and professional c. lamps and boards d. incident and reflected e. neutral density and enhancement
Answers: 3
question
Computers and Technology, 23.06.2019 22:30
Jamie has to enter the names, employee id’s, and income of a group of employees into a worksheet. which option will jamie use to describe the data
Answers: 3
question
Computers and Technology, 24.06.2019 08:00
Java the manager of a football stadium wants you to write a program that calculates the total ticket sales after each game
Answers: 1
question
Computers and Technology, 24.06.2019 13:30
In the rgb model, which color is formed by combining the constituent colors? a) black b) brown c) yellow d) white e) blue
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
Questions on the website: 13722361