Skip to content

Instantly share code, notes, and snippets.

Avatar

Timothy Carter NotaPhysicist

View GitHub Profile
@NotaPhysicist
NotaPhysicist / putchar.c
Created Dec 11, 2019
Playing around with printing a grid of characters using for loops and putchar() and passing arguments in functions.
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);
@NotaPhysicist
NotaPhysicist / chline.c
Created Dec 11, 2019
A program to print a requested character in requested rows and columns using a nested for loop and putchar().
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>
@NotaPhysicist
NotaPhysicist / gist:8eaf61940afff6271689a87fe72f5dee
Created Dec 11, 2019
A program to print a requested character in requested rows and columns
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)