chapter5
This commit is contained in:
13
DeitelC/Chapter5/rectangleOfAnyChar.c
Normal file
13
DeitelC/Chapter5/rectangleOfAnyChar.c
Normal file
@ -0,0 +1,13 @@
|
||||
#include <stdio.h>
|
||||
|
||||
void rectangleOfAnyChar (int side1, int side2, char a);
|
||||
|
||||
|
||||
void rectangleOfAnyChar (int side1, int side2, char a) {
|
||||
for(int i = 0; i < side1; i++) {
|
||||
for(int j = 0; j < side2; j++) {
|
||||
printf("%c", a);
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user