Ответ(ы) на вопрос:
Гость
50)
#include
#include
using namespace std;
int main(){
int a,b,c;
cout<<"Enter a: ";
cin>>a;
cout<<"Enter b: ";
cin>>b;
cout<<"Enter c: ";
cin>>c;
if ((a == b) && (b == c)) {
cout<<"This triangle is equilateral";
}
else if (((a == b) & (b != c)) || ((a != b) && (b == c)) || ((b != a) && (c == a))) { cout<<"This triangle is isosceles\n";
cout<<"The perimeter = "<
#include
using namespace std;
int main(){
int a,b,sum,pro,diff;
cout<<"Enter first number:\n";
cin>>a;
cout<<"Enter second number:\n";
cin>>b;
if (a != b) {
sum = a+b;
pro = a*b;
if (pro > sum) {
diff = pro-sum;
cout<<"Difference between pro and sum = "<
Не нашли ответ?
Похожие вопросы