#include <iostream>
int main()
{
using namespace std;
const string password = "123456";
string attempted;
cout << "Enter correct password" << endl;
for (int i = 0; i < 3; i++)
{
cin >> attempted;
if (attempted == password)
{
cout << "Successful login" << endl;
return 0;
}
else
{
cout << "Wrong password" << endl;
}
}
cout << "Access denied" << endl;
return 0;
}
1)20m+40m=240
60m=240
m=240: 60
m=4
ответ: m=4
2)800k: 200=800
800k=800*200
800k=160000
k=160000: 800
k=200
ответ: k=200
3)(8x+2x)*8: 2=160
10х*8: 2=160
10х*8=160*2
10х*8=320
10х=320: 8
10х=40
х=40: 10
х=4
ответ: х=4
4)10+30t=20t+100
не знаю