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.     cout << "Inserisci la grandezza (valore assoluto) dei lati di un triangolo:" <<endl;
  5.     int a;
  6.     int b;
  7.     int c;
  8.     cin >> a;
  9.     cin >> b;
  10.     cin >> c;
  11.     bool ris;
  12.     switch(ris) {
  13.         case a==b==c:
  14.             cout << "Il triangolo è equilatero."<<endl;
  15.             break;
  16.         case a==b:
  17.         case b==c:
  18.         case a==c:
  19.             cout << "Il triangolo è isoscele."<<endl;
  20.             break;
  21.         default:
  22.             cout "I valori inseriti non sono validi."<<endl;
  23.         }
  24.     return 0
  25.     }
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