How To Print Characters


How to print different characters via CPP programming?




#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int a;
for(a=0; a<=254; a++)
{
cout<<a<<"\t"<<char (a)<<endl;

}
getch();
}
 

Output Result









Comments

Popular posts from this blog

Even/Odd Number Checking Code in CPP

Calculating Name and Marks in Cpp

Triangle of Characters(CPP)