Ask Question
4 July, 03:33

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

example : Enter ASCII value = 52

Character = 4.

+4
Answers (1)
  1. 4 July, 03:56
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers