1)
a = 1
b = 3*1 = 3
x = (1+3)/(1*3-1) = 4/(3-1) = 4/2 = 2
2)
#include <iostream>
using namespace std;
signed main() {
string name;
cin >> name;
cout << "Здравствуй, " << name << "! Давай дружить?";
}
3)
int a,b,c;
cin >> a >> b >> c;
if(a == b || b == c || a == c)
cout << "YES";
else
cout << "NO";
4)
int sum = 0;
while(true){
int x;
cin >> x;
if(x == 0)
break;
sum += x;
cout << sum;
Поделитесь своими знаниями, ответьте на вопрос:
питон исправить код, если это нужно import matha=int(input("Введите a: "))b=int(input("Введите b: "))x=int(input("Введите x: "))y=math.exp(abs(math.sin(3*a*x+b)))*x/(math.sqrt(a*x)+b*x**2)**3print("Выражение равно : ", y)
1)
a = 1
b = 3*1 = 3
x = (1+3)/(1*3-1) = 4/(3-1) = 4/2 = 2
2)
#include <iostream>
using namespace std;
signed main() {
string name;
cin >> name;
cout << "Здравствуй, " << name << "! Давай дружить?";
}
3)
#include <iostream>
using namespace std;
signed main() {
int a,b,c;
cin >> a >> b >> c;
if(a == b || b == c || a == c)
cout << "YES";
else
cout << "NO";
}
4)
#include <iostream>
using namespace std;
signed main() {
int sum = 0;
while(true){
int x;
cin >> x;
if(x == 0)
break;
sum += x;
}
cout << sum;
}