Fandom

Scratchpad

PLE:Unidad3Ejercicio06

215,761pages on
this wiki
Add New Page
Discuss this page0 Share

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.

/*
Programa:       Ejercicio6.cpp
Fecha:          11/10/2007
Descripción:    Muestra el código ASCII de un carácter
*/
#include <iostream>
using namespace std;
void main()
{
        unsigned char c;
        // Leemos la variable
        cout << "Introduzca una caracter ";
        cin >> c;
        // Mostramos el valor
        cout << "El caracter es = ";
        cout << c << endl;
        cout << "Su codigo ASCII es = ";
        cout << (int) c;
        cin.ignore();
        cin.get();
}

Media:Example.ogg

Also on Fandom

Random wikia