Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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
Add Comment
Please, Sign In to add comment