Ответ:
python:
n = int(input())
m = int(input())
if n<0 and m<0:
print(n*n+m*m)
else:
print("they are positive")
-------------
c++:
#include <iostream>
int main()
{
int n, m;
std::cin >> n >> m;
if (n<0 && m<0)
std::cout << n*n+m*m;
else
std::cout << "they are positive";
return 0;
}
Объяснение:
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
python:
n = int(input())
m = int(input())
if n<0 and m<0:
print(n*n+m*m)
else:
print("they are positive")
-------------
c++:
#include <iostream>
int main()
{
int n, m;
std::cin >> n >> m;
if (n<0 && m<0)
std::cout << n*n+m*m;
else
std::cout << "they are positive";
return 0;
}
Объяснение: