67 060
Assignments Done
99,3%
Successfully Done
In November 2018

Answer to Question #14018 in C++ for shalenee

Question #14018
(Displaying the ASCII character table) Write a program that prints the characters in the ASCII character table from ' ! ' to ' ~ '. Print ten characters per line.
Expert's answer
#include <iostream>

using namespace std;

int main(){
for (int i = 33; i < 127; i++){
& cout<<(char)i<<(((i-32)%11 == 0) ? "\n" : " ");
}
getchar();
return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions