Write A Program That Prompts The User To Input An Integer Between 0 And 35. If The Number Is Less Than Or Equal To 9, The Program Should Output The Number; Otherwise, It Should Output A For 10, B For 11, C For 12 . . . And Z For 35. (Hint: Use The Cast Op

匿名用户 最后更新于 2021-12-01 19:36 计算机类Computing

Write a program that prompts the user to input an integerbetween 0 and 35. If the number is less than or equal to 9, theprogram should output the number; otherwise, it should output A for10, B for 11, C for 12 . . . and Z for 35. (Hint: Use the castoperator, static_cast( ), for numbers >= 10. E.g;static_cast('A'+1) will evaluated to B)

已邀请: