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

a rational number between 1.7 and 1.8
How do archaebacteria move?
George has a small coin collection.  He has collected 16 gold coins, 28 silver coins, 32 copper coins, and4 bronze coins. At a flea market, George sells 15% of
. Humans who live in ________ are at risk for getting malaria. a. Alaska b. Norway c. Florida d. Mexico
How are kingdom and genus related ??
What is the acceleration of a 6.4 kilogram bowling ball if a force of 12 N is applied to it?
0.285 to the nearest tenth
George has a small coin collection.  He has collected 16 gold coins, 28 silver coins, 32 copper coins, and4 bronze coins. At a flea market, George sells 15% of
0.285 to the nearest tenth
How much force is needed to accelerate a 68 kilogram-skier at a rate of 1.2 m/sec^2?