SHARE
TWEET

Untitled

a guest Nov 12th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3. int main () {
  4.     int a,b,c;
  5.     cout << "Inserisci il valore dei lati di un triangolo."<<endl;
  6.     cin >> a;
  7.     cin >> b;
  8.     cin >> c;
  9.     if (a==b)&&(b==c) {
  10.         cout << "Il triangolo è equilatero"<<endl;
  11.     }else if (a==b)||(b==c)||(a==c) {
  12.         cout << "Il triangolo è isoscele." <<endl;
  13.     }else{
  14.         cout << "Il triangolo è scaleno." <<endl;
  15.     }
  16.     return 0;
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top