Guest User

Untitled

a guest
Mar 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. # ruby input_test.c
  2.  
  3. require 'io/console'
  4.  
  5. puts "Angle( C-c: exit )\n1. 0°\n2. 90°\n3. 180°"
  6.  
  7. while c = STDIN.getch
  8. exit if c == ?\C-c
  9. print c
  10.  
  11. puts "\nAngle( C-c: exit )\n1. 0°\n2. 90°\n3. 180°"
  12. end
Add Comment
Please, Sign In to add comment