program to show the ascii value of charactersint


Program to show the ascii value of characters:

int main()

{

                int one_char;

                cout << "\nEnter a character: ";

                one_char = getch();

                cout << "\nThe character you entered was "

             << (char) one_char << '\n';

                cout << " Its ASCII value is "<< (int) one_char << '\n';

 

                return 0;

}

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: program to show the ascii value of charactersint
Reference No:- TGS0174803

Expected delivery within 24 Hours