50)
#include
#include
using namespace std;
int main(){
int a,b,c;
cout<<"Enter a: "; <br>cin>>a;
cout<<"Enter b: "; <br> cin>>b;
cout<<"Enter c: "; <br> cin>>c;
if ((a == b) && (b == c)) {
cout<<"This triangle is equilateral"; <br> }
else if (((a == b) & (b != c)) || ((a != b) && (b == c)) || ((b != a) && (c == a))) { cout<<"This triangle is isosceles\n"; <br> cout<<"The perimeter = "<<a+b+c; <br> }
}
51)
#include
#include
using namespace std;
int main(){
int a,b,sum,pro,diff;
cout<<"Enter first number:\n";<br>cin>>a;
cout<<"Enter second number:\n";<br>cin>>b;
if (a != b) {
sum = a+b;
pro = a*b;
if (pro > sum) {
diff = pro-sum;
cout<<"Difference between pro and sum = "<<diff; <br> }
}
}