Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Help!!! ASCII writing a code that displays the numeric code with its character
1 回表示 (過去 30 日間)
古いコメントを表示
sorry for the super weird format
Write a MATLAB program that displays ASCII numeric codes as the corresponding characters
Your program should proceed in a loop. Begin by prompting the user to enter some ASCII codes or -1 to quit. Input the codes and echo the corresponding characters to the command window. We're only interested in the ASCII codes representing the core set of displayable characters. These fall in the range 32 to 126. For any codes outside this range (except -1, which is used to quit), substitute the code for a question mark. Proceed in a loop unit -1 is detected. When that happens, output 'Bye!' and terminate.
2 件のコメント
Rik
2020 年 3 月 19 日
Sounds like a reasonable homework question. What have you done so far to solve it?
回答 (0 件)
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!