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.
1
Expert's answer
2012-09-06T09:23:38-0400
#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 the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS