Untitled
Anonymous
plain_text
11/25/2021 4:29 AM
472 B
20
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...