Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main () {
- int a,b,c;
- cout << "Inserisci il valore dei lati di un triangolo."<<endl;
- cin >> a;
- cin >> b;
- cin >> c;
- if (a==b)&&(b==c) {
- cout << "Il triangolo è equilatero"<<endl;
- }else if (a==b)||(b==c)||(a==c) {
- cout << "Il triangolo è isoscele." <<endl;
- }else{
- cout << "Il triangolo è scaleno." <<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement