Fandom

Scratchpad

PLE:Unidad22Ejercicio11

219,297pages on
this wiki
Add New Page
Discuss this page0 Share
/*
Programa:       Ejercicio11.cpp
Fecha:          20/10/2006
Descripción:    Muestra los números 10-50 en decimal, octal y hexadecimal
*/
#include <iostream>
using namespace std;
void main()
{
        int i = 10;

        cout << "Decimal\tOctal\tHexadecimal\n";
        while( i <= 50)
        {
                cout << dec << i << '\t';
                cout << oct << i << '\t';
                cout << hex << i << endl;
                i++;
        }

        cin.ignore();
        cin.get();
}

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.

Also on Fandom

Random wikia