Question #152428

Write a program which displays all the ASCII characters on the screen.

Expert's answer

#include<iostream>

using namespace std;

int main()
{
	int i;	
	cout << "\nThe ASCII characters are\n";
	for(i = 0; i <= 255; i++)
	{
		cout << "ASCII value: " << i <<"  Character: " <<char(i) << endl;
	}
 	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!

LATEST TUTORIALS
APPROVED BY CLIENTS