Programa:       Ejercicio6.cpp
Fecha:          11/10/2007
Descripción:    Muestra el caracter ASCII de un número
#include <iostream>
using namespace std;
void main()
        int n;
        // Leemos la variable
        cout << "Introduzca un numero ";
        cin >> n;
        // Mostramos el valor
        cout << "El numero es = ";
        cout << n << endl;
        cout << "Su caracter ASCII correspondiente es = ";
        cout << (char) n;

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.