Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
355 B
2
Indexable
Never
#include <iostream>
using namespace std;

void multiplicationTable(int a)
{
    for (int i = 1; i <= 10; i++)
        cout << a << " * " << i << " = " << a * i << endl;
}

int main()
{
    setlocale(LC_ALL, "RUS");
    int a;
    cout << "Введите число: ";
    cin >> a;
    
    multiplicationTable(a);
    
    return 0;
}