Last active
September 10, 2019 21:19
-
-
Save Ryan-Amaral/2578df3fc727c38b10843e1d51f3a688 to your computer and use it in GitHub Desktop.
A simple demo for capturing and displaying a character in c.
This file contains 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
#include <stdio.h> | |
int main(){ | |
char ch; | |
printf("Enter a character: "); | |
ch = getchar(); | |
printf("Pointless line here, delete it! (dd)"); | |
printf("Your character is: "); | |
putchar(ch); | |
//printf("\n"); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment