#2739
#include <iostream>
using namespace std;
int main()
{
int N;
cin >> N;
if (N < 1 || N >10) {
return 0;
}
for (int i = 1; i <= 9; i++) {
cout << N << " * " << i << " = " << N * i << endl;
}
}
#10950
#include <iostream>
using namespace std;
int main()
{
int A, B;
int T;
cin >> T;
for (int i = 0; i < T; i++) {
cin >> A >> B;
if (A < 0 || A>10 || B < 0 || B>10)
return 0;
cout << A + B << endl;
}
}
#8393
#include <iostream>
using namespace std;
int main()
{
int n;
int sum = 0;
cin >> n;
if (n < 1 || n>10000) {
return 0;
}
for (int i = 1; i <= n; i++) {
sum = sum + i;
}
cout << sum;
}
#2438
#include <iostream>
using namespace std;
int main()
{
int N;
cin >> N;
if (N < 1 || N>100) {
return 0;
}
for (int i = 1; i <= N; i++) {
for (int j = 1; j <= i; j++) {
cout << "*";
}
cout << "\n";
}
}
#2439
#include <iostream>
using namespace std;
int main()
{
int N;
cin >> N;
if (N < 1 || N>100) {
return 0;
}
for (int i = 1; i <= N; i++) {
for (int k = 1; k <= N - i; k++) {
cout << " ";
}
for (int j = 1; j <= i; j++) {
cout << "*";
}
cout << "\n";
}
}
#10871
#include <iostream>
using namespace std;
int main()
{
int N, X;
int m;
cin >> N >> X;
if (N < 1 || N>10000 || X <1 || X>10000)
{
return 0;
}
for (int i = 0; i < N; i++) {
cin >> m;
if (m < X) {
cout << m << " ";
}
}
}