Last active
March 15, 2018 03:56
-
-
Save 4noha/f62ae6fef330141364f9ae3d8e325371 to your computer and use it in GitHub Desktop.
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
| # ruby input_test.c | |
| require 'io/console' | |
| puts "Angle( C-c: exit )\n1. 0°\n2. 90°\n3. 180°" | |
| while c = STDIN.getch | |
| exit if c == ?\C-c | |
| print c | |
| puts "\nAngle( C-c: exit )\n1. 0°\n2. 90°\n3. 180°" | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment