Ответ:
Python:
n = int(input())
s = 0
for i in range(1, n+1):
s += n
print(s)
C++:
#include <iostream>
using namespace std;
int main(){
int n, s = 0;
cin >> n;
for(int i = 1; i <= n; i++) s += n;
cout << s;
}
1. Так
2. Так............
10010 (2) * x = 1210 (5)
(10) ->
(2^4+2) * x = (125+50+5)
18*x=180
x=10
10 | 2
1 | 1
12 (8)
Ответ 12.