Answer to Question #152767 in C++ for Noman khan

Question #152767
Write a program which displays all the ASCII characters on the screen.
1
Expert's answer
2020-12-25T05:12:58-0500

// THis program prints all ascii charecters visible from your computer keyboard.

//all ascii coes have values ranging from 32 to 128 hence looping through such numbers is necessary to print alll charecters.

//The for loop has been used for that purpose.

//Source code is as shown below

 

 

 

 

#include <iostream>

 

using namespace std;

 

 

 

int main(void)

 

{

 

 

for (int count = 32; count<128; count++)

 

 

cout<<count<<"\t\t"<<(char) count<<"\n";

 

 

 

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