Computers and Technology, 25.03.2020 06:38 aly95
(1) The given program outputs a fixed-height triangle using a * character. Modify the given program to output a right triangle that instead uses the user-specified triangleChar character.
(2) Modify the program to use a nested loop to output a right triangle of height triangleHeight. The first line will have one user-specified character, such as % or *. Each subsequent line will have one additional user-specified character until the number in the triangle's base reaches triangleHeight. Output a space after each user-specified character, including after the line's last user-specified character.
Example output for triangleChar = % and triangleHeight = 5: Enter a character: % Enter triangle height: 5 %
#include
int main(void) {
char triangleChar;
int triangleHeight;
printf("Enter a character:\n");
scanf("%c", &triangleChar);
printf("Enter triangle height:\n");
scanf("%d", &triangleHeight);
printf("\n");
//you solution here
return 0;
}
Answers: 2
Computers and Technology, 22.06.2019 02:50
Which of the following had the greatest influence on opening the internet to the generly public
Answers: 1
Computers and Technology, 22.06.2019 04:40
Amain idea is supported, explained, or expanded on with a numbers b. a concluding statement c. details d. a topic sentence. im e paragraphs reset nex next
Answers: 2
Computers and Technology, 22.06.2019 21:00
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings starting from index 0. for each match, add one point to userscore. upon a mismatch, exit the loop using a break statement. assume simonpattern and userpattern are always the same length. ex: the following patterns yield a userscore of 4: simonpattern: rrgbryybgy userpattern: rrgbbrybgy
Answers: 2
Computers and Technology, 22.06.2019 21:30
Im doing this last minute and literally none of my neighbors or people that my dad works with use excel so if anyone could me make up an example
Answers: 1
(1) The given program outputs a fixed-height triangle using a * character. Modify the given program...
Mathematics, 08.04.2020 04:38
English, 08.04.2020 04:38
Mathematics, 08.04.2020 04:39
Biology, 08.04.2020 04:39
English, 08.04.2020 04:39
Mathematics, 08.04.2020 04:39
Mathematics, 08.04.2020 04:39
Social Studies, 08.04.2020 04:39