Ask Question
4 January, 15:09

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

example : Enter ASCII value = 52

Character = 4.

+3
Answers (1)
  1. 4 January, 15:20
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers