The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled C Code
Posted by: Monkey | December 22, 2010 @ 1:43pm
C Code
[
Download
]
#include <stdio.h> #include "/home6/drs/include/simpleio.h" int main() { char ch; printf("Please enter a single character from 0 - 9 "); ch=getChar(); switch (ch) { case '0' :printf("\n ZERO \n"); break; case '1' :printf("\n ONE \n"); break; case '2' :printf("\n TWO \n"); break; case '3' :printf("\n THREE \n"); break; case '4' :printf("\n FOUR \n"); break; case '5' :printf("\n FIVE \n"); break; case '6' :printf("\n SIX \n"); break; case '7' :printf("\n SEVEN \n"); break; case '8' :printf("\n EIGHT \n"); break; case '9' :printf("\n NINE \n"); break; default :printf("\n NOT A DIGIT \n"); break; } return 0; }
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.57 / 8
70 Votes
http://codebin.yi.org/1029
page generated in 0.01 seconds