Untitled

 avatar
unknown
plain_text
3 years ago
353 B
2
Indexable
//15.Hacer un programa que imprima la tabla de sumar decimal (1 al 10), en el formato que usted elija.
#include <iostream>
#include <ctime>
using namespace std;
int main()
{
    int i = 0, s = 0;
    while (i < 10)
    {
        i = i + 1;
        s = s + i;
        cout << s - i << "+" << i << "=" << s << endl;
    }

    return 0;
}
Editor is loading...