View putchar.c
/** | |
* putchar.c -- playing around with printng a grid of characters using | |
* for loops and putchar and passing arguments in functions | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
void printchar(char ch, int rows, int cols); |
View chline.c
/** | |
* chline.c | |
* | |
* A program to print a requested character in requested | |
* rows and columns using a nested for loop and putchar | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> |
View gist:8eaf61940afff6271689a87fe72f5dee
/* chline.c -- A program to print a requested character in requested rows and columns */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
char getcharacter(void); | |
int getint(void); | |
void printchar(char character, int rows, int cols); | |
int main(void) |