This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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) |