#include <iostream>
using namespace std;

int main()
{
cout<<"Text to ASCII converter"<<endl<<"Enter text to convert into ASCII - ";
char text;   //defining input type, which is single character
int ascee;   //defining that ASCII code will be numeric integer
cin>>text;   //taking input from user
ascee = static_cast<int>(text);//converting the input character into ASCII code
cout<<endl<<"ASCII code is "<<ascee<<endl; //displaying the ASCII code
return 0;
}
