fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.  
  7. cout << "enter a number from 0 to 93";
  8. int x;
  9. std::cin >> x;
  10. cout << "you entered " << x;
  11. if (x == 0) {
  12. cout << " which corresponds " << '!';
  13. }
  14. if (x == 1) {
  15. cout << " which corresponds " << '"';
  16. }
  17. if (x == 2) {
  18. cout << " which corresponds " << '#';
  19. }
  20. if (x == 3) {
  21. cout << " which corresponds " << '$';
  22. }
  23. if (x == 4) {
  24. cout << " which corresponds " << '%';
  25. }
  26. if (x == 5) {
  27. cout << " which corresponds " << '&';
  28. }
  29. if (x == 6) {
  30. cout << " which corresponds " << "'";
  31. }
  32. if (x == 7) {
  33. cout << " which corresponds " << '(';
  34. }
  35. if (x == 8) {
  36. cout << " which corresponds " << ')';
  37. }
  38. if (x == 9) {
  39. cout << " which corresponds " << '*';
  40. }
  41. if (x == 10) {
  42. cout << " which corresponds " << '+';
  43. }
  44. if (x == 11) {
  45. cout << " which corresponds " << ',';
  46. }
  47. if (x == 12) {
  48. cout << " which corresponds " << '-';
  49. }
  50. if (x == 13) {
  51. cout << " which corresponds " << '.';
  52. }
  53. if (x == 14) {
  54. cout << " which corresponds " << '/';
  55. }
  56. if (x == 15) {
  57. cout << " which corresponds " << '0';
  58. }
  59. if (x == 16) {
  60. cout << " which corresponds " << '1';
  61. }
  62. if (x == 17) {
  63. cout << " which corresponds " << '2';
  64. }
  65. if (x == 18) {
  66. cout << " which corresponds " << '3';
  67. }
  68. if (x == 19) {
  69. cout << " which corresponds " << '4';
  70. }
  71. if (x == 20) {
  72. cout << " which corresponds " << '5';
  73. }
  74. if (x == 21) {
  75. cout << " which corresponds " << '6';
  76. }
  77. if (x == 22) {
  78. cout << " which corresponds " << '7';
  79. }
  80. if (x == 23) {
  81. cout << " which corresponds " << '8';
  82. }
  83. if (x == 24) {
  84. cout << " which corresponds " << '9';
  85. }
  86. if (x == 25) {
  87. cout << " which corresponds " << ':';
  88. }
  89. if (x == 26) {
  90. cout << " which corresponds " << ';';
  91. }
  92. if (x == 27) {
  93. cout << " which corresponds " << '<';
  94. }
  95. if (x == 28) {
  96. cout << " which corresponds " << '=';
  97. }
  98. if (x == 29) {
  99. cout << " which corresponds " << '>';
  100. }
  101. if (x == 30) {
  102. cout << " which corresponds " << '?';
  103. }
  104. if (x == 31) {
  105. cout << " which corresponds " << '@';
  106. }
  107. if (x == 32) {
  108. cout << " which corresponds " << 'A';
  109. }
  110. if (x == 33) {
  111. cout << " which corresponds " << 'B';
  112. }
  113. if (x == 34) {
  114. cout << " which corresponds " << 'C';
  115. }
  116. if (x == 35) {
  117. cout << " which corresponds " << 'D';
  118. }
  119. if (x == 36) {
  120. cout << " which corresponds " << 'E';
  121. }
  122. if (x == 37) {
  123. cout << " which corresponds " << 'F';
  124. }
  125. if (x == 38) {
  126. cout << " which corresponds " << 'G';
  127. }
  128. if (x == 39) {
  129. cout << " which corresponds " << 'H';
  130. }
  131. if (x == 40) {
  132. cout << " which corresponds " << 'I';
  133. }
  134. if (x == 41) {
  135. cout << " which corresponds " << 'J';
  136. }
  137. if (x == 42) {
  138. cout << " which corresponds " << 'K';
  139. }
  140. if (x == 43) {
  141. cout << " which corresponds " << 'L';
  142. }
  143. if (x == 44) {
  144. cout << " which corresponds " << 'M';
  145. }
  146. if (x == 45) {
  147. cout << " which corresponds " << 'N';
  148. }
  149. if (x == 46) {
  150. cout << " which corresponds " << 'O';
  151. }
  152. if (x == 47) {
  153. cout << " which corresponds " << 'P';
  154. }
  155. if (x == 48) {
  156. cout << " which corresponds " << 'Q';
  157. }
  158. if (x == 49) {
  159. cout << " which corresponds " << 'R';
  160. }
  161. if (x == 50) {
  162. cout << " which corresponds " << 'S';
  163. }
  164. if (x == 51) {
  165. cout << " which corresponds " << 'T';
  166. }
  167. if (x == 52) {
  168. cout << " which corresponds " << 'U';
  169. }
  170. if (x == 53) {
  171. cout << " which corresponds " << 'V';
  172. }
  173. if (x == 54) {
  174. cout << " which corresponds " << 'W';
  175. }
  176. if (x == 55) {
  177. cout << " which corresponds " << 'X';
  178. }
  179. if (x == 56) {
  180. cout << " which corresponds " << 'Y';
  181. }
  182. if (x == 57) {
  183. cout << " which corresponds " << 'Z';
  184. }
  185. if (x == 58) {
  186. cout << " which corresponds " << '[';
  187. }
  188. if (x == 59) {
  189. cout << " which corresponds " << 'slash';
  190. }
  191. if (x == 60) {
  192. cout << " which corresponds " << ']';
  193. }
  194. if (x == 61) {
  195. cout << " which corresponds " << '^';
  196. }
  197. if (x == 62) {
  198. cout << " which corresponds " << '_';
  199. }
  200. if (x == 63) {
  201. cout << " which corresponds " << '`';
  202. }
  203. if (x == 64) {
  204. cout << " which corresponds " << 'a';
  205. }
  206. if (x == 65) {
  207. cout << " which corresponds " << 'd';
  208. }
  209. if (x == 66) {
  210. cout << " which corresponds " << 'c';
  211. }
  212. if (x == 67) {
  213. cout << " which corresponds " << 'd';
  214. }
  215. if (x == 68) {
  216. cout << " which corresponds " << 'e';
  217. }
  218. if (x == 69) {
  219. cout << " which corresponds " << 'f';
  220. }
  221. if (x == 70) {
  222. cout << " which corresponds " << 'g';
  223. }
  224. if (x == 71) {
  225. cout << " which corresponds " << 'h';
  226. }
  227. if (x == 72) {
  228. cout << " which corresponds " << 'i';
  229. }
  230. if (x == 73) {
  231. cout << " which corresponds " << 'j';
  232. }
  233. if (x == 74) {
  234. cout << " which corresponds " << 'k';
  235. }
  236. if (x == 75) {
  237. cout << " which corresponds " << 'l';
  238. }
  239. if (x == 76) {
  240. cout << " which corresponds " << 'm';
  241. }
  242. if (x == 77) {
  243. cout << " which corresponds " << 'n';
  244. }
  245. if (x == 78) {
  246. cout << " which corresponds " << 'o';
  247. }
  248. if (x == 79) {
  249. cout << " which corresponds " << 'p';
  250. }
  251. if (x == 80) {
  252. cout << " which corresponds " << 'q';
  253. }
  254. if (x == 81) {
  255. cout << " which corresponds " << 'r';
  256. }
  257. if (x == 82) {
  258. cout << " which corresponds " << 's';
  259. }
  260. if (x == 83) {
  261. cout << " which corresponds " << 't';
  262. }
  263. if (x == 84) {
  264. cout << " which corresponds " << 'u';
  265. }
  266. if (x == 85) {
  267. cout << " which corresponds " << 'v';
  268. }
  269. if (x == 86) {
  270. cout << " which corresponds " << 'w';
  271. }
  272. if (x == 87) {
  273. cout << " which corresponds " << 'x';
  274. }
  275. if (x == 88) {
  276. cout << " which corresponds " << 'y';
  277. }
  278. if (x == 89) {
  279. cout << " which corresponds " << 'z';
  280. }
  281. if (x == 90) {
  282. cout << " which corresponds " << '{';
  283. }
  284. if (x == 91) {
  285. cout << " which corresponds " << '|';
  286. }
  287. if (x == 92) {
  288. cout << " which corresponds " << '}';
  289. }
  290. if (x == 93) {
  291. cout << " which corresponds " << '~';
  292. }
  293. return 0;
  294. }
  295.  
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
enter a number from 0 to 93you entered 32764