Fandom

Scratchpad

PLE:Unidad4Ejercicio9

219,149pages on
this wiki
Add New Page
Discuss this page0 Share
/*
Programa:       Unidad4Ejercicio09.cpp
Descripción:    Muestra la tabla de multiplicar de los numeor comprendidos
                entre dos cantidades.
*/
#include <iostream>
#include <iomanip>
#include <cstdio>
using namespace std;

void main ()
{
        int limInf, limSup, i, j;

        cout << "Introduczca el limite inf. ";
        cin >> limInf;

        cout << "Introduczca el limite sup. ";
        cin >> limSup;

        cout << "x    1   2   3   4   5   6   7   8   9  10\n";
        cout << "===========================================\n";

        for(i = limInf ; i <= limSup; i++)
        {
                cout << setw(2) << i << "  ";
                for(j = 1; j <= 10; j++)
                {
                        cout << setw(2) << i * j << "  ";
                }
                cout << endl;
        }

        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