Print a table of ASCII code from 33 to 259

# include <iostream>
using namespace std;

void main ()
{
int number=33; // here the number is set as 33
char ascii=number;// gte the ascii code of the int number



while (number<=256) // loop is countinue till the givem limit is approached
{
cout<<ascii<<"      "<<number<<endl;

number++; // number is increamnet
ascii++; // here ascii is increament
}
}

Comments

Popular posts from this blog

Umbrella activities in Software Engineering

Operating System | Best Definition of Opetating System