Displaying ./code/loops/for.c#include <stdio.h>
// A function *prototype* for line:
void line(int width);
int main(void)
{
for(int i = 0; i < 10; i++) {
line(10);
}
return 0;
}
void line(int width)
{
for(int i=0; i < width; i++) {
putchar('#');
}
putchar('\n');
}
|