(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; }
Comments
Leave a comment