@GggDrej
71 / 71 / 8
Регистрация: 21.01.2013
Сообщений: 147
|
03.02.2013, 23:53
|
|
Таблица умножения:
C++ | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| #include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int n;
cout << "Size: ";
cin >> n;
cout << endl << "\t";
for ( int q=1; q<=n; q++ ) cout << q << "\t";
cout << endl;
for ( int q=1; q<=n; q++ ) {
cout << q << "\t";
for ( int r=1; r<=n; r++ ) cout << q*r << "\t";
cout << endl;
}
system("PAUSE");
return 0;
} |
|
0
|