Answer to Question #152428 in C++ for Usama Saleem

Question #152428
Write a program which displays all the ASCII characters on the screen.
1
Expert's answer
2020-12-25T05:12:48-0500
#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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog