Ask Question
19 March, 21:37

Write a program in c+ + to display the character by entering its ASCII value.

example : Enter ASCII value = 52

Character = 4.

+2
Answers (1)
  1. 20 March, 00:55
    0
    You could do it like this:

    #include

    int main ()

    {

    int c;

    do

    {

    std::cout << "Enter ASCII value (0 to exit) : ";

    std::cin >> c;

    std::cout << "Character = " << char (c) << std::endl;

    } while (c > 0);

    }
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a program in c+ + to display the character by entering its ASCII value. example : Enter ASCII value = 52 Character = 4. ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers