7. Suppose that x = 1, y = -1, and z = 1. What will be displayed by the following statement? if x > 0: if y > 0: print(“x > 0 and y > 0”) elif z > 0: print(“x < 0 and z > 0”)
a. x > 0 and y > 0 b. x < 0 and z > 0 c. x < 0 and z < 0 d. nothing displayed
по программе Питон
#include <iostream>
#include <windows.h>
#include <math.h>
using namespace std;
int main ()
{
double a,b;
cout << "enter a: ";
cin >> a;
cout << "enter b: ";
cin >> b;
if( (a-b)*(a+b) > fabs(a*a-2*a*b+b*b))
{
cout << " bolshe raznost kvadratov";
return 0;
}
else
{
cout << " bolshe modul kvadrata raznosti";
return 0;
}
return 0;
}