Computers and Technology
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



**

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 21:40, DisneyGirl11
Which is a benefit of getting information from a government website? a. the information will be easy to understand. ob. the information will be the most current. oc. the information can be trusted.
Answers: 1
image
Computers and Technology, 22.06.2019 20:00, ayoismeisalex
When you mouse over and click to add a search term this(these) boolean operator(s) is(are) not implied. (select all that apply)?
Answers: 1
image
Computers and Technology, 23.06.2019 00:30, haileesprague575
Quic which one of the following is the most accurate definition of technology? a electronic tools that improve functionality b electronic tools that provide entertainment or practical value c any type of tool that serves a practical function d any type of tool that enhances communication
Answers: 1
image
Computers and Technology, 24.06.2019 17:30, sanchez9211
Click on the tab on the ribbon to open the backstage view. file view insert review
Answers: 1
Do you know the correct answer?
Write a C program that uses 2 functions: 1) A function that receives as a parameter a positive int...

Questions in other subjects:

Konu
Mathematics, 12.05.2021 09:10
Konu
Health, 12.05.2021 09:10