shikharrai114p41vpc shikharrai114p41vpc
  • 10-10-2018
  • Computers and Technology
contestada

Write a program in c++ to display the character by entering its ASCII value.
example : Enter ASCII value = 52
Character = 4.

Respuesta :

tonb
tonb tonb
  • 10-10-2018

You could do it like this:

#include <iostream>


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);

}

Answer Link

Otras preguntas

Nadia has a can of vegetable with a mass of 411 grams what is the mass in centigrams
What is the slope of a line that passes through the points (-2,4) and (-6,12)? -2 -1/2 1/2 2
which has a greater momentum, a car or a bike moving at the same speed​
Which behavior is most likely that of a person who is less prone to depression than others?
a baker cuts 3 into pieces.each piece represents 1/8 of the cake.What is the total number of pieces?
Which ordered pair is the best estimate for the solution of the system of equations? {y=3x−5.2{y=−0.2x+2.48 A.) (0, 2.6) B.) (2.75, 2) C.) (0, −5) D.)
Which of the following is a key feature of Africa's cultural legacy? A. Most African countries today still use the caste social structure B. The influence of Ch
the income effect causes consumers to do which of the following? A. Demand a lesser quantity of goods as normal. B . Demand a greater quantity of goods as norm
What are the solutions to the equation x² = 169? Select each correct answer. −84.5 −13 13 84.5
is Brendan spent 24 minutes playing a computer game he stopped playing at 3:55 p.m. and went outside to ride his bike what time did he start playing the compute