140k views
0 votes
Write a program that produces this output:

Write a program that produces this output:-example-1
User Nullforce
by
5.8k points

1 Answer

4 votes

Answer:

void printC()

{

int i, j;

for (i = 0; i < 4; i++) //i indicate row number. Here we have 5 rows

{

printf("C"); //print C for every row

for (j = 0; j < 6; j++) //j indicate column number. Here we have 7 Rows

printf("\\"); // print in next line

}

}

User Spig
by
6.2k points