The program illustrates the use of loops;
Loops are program statements that are used to perform repetition
The modified program in C, is as follows:
#include<stdio.h>
int main(void) {
char triangleChar; int triangleHeight;
printf("Enter a character: "); scanf("%c", &triangleChar);
printf("Enter triangle height: "); scanf("%d", &triangleHeight);
for (int i = 0; i<triangleHeight; i++){
printf("\n");
for(int j = 0;j<=i;j++){
printf("%c",triangleChar);
}
}
return 0;
}
Read more about loops at:https://brainly.com/question/24833629
#SPJ1