The problem is the following 2 soccer teams, wanted to create a decision where it would show "Brazil won" or "Argentina Won" or "There was a tie."
But I can not make three decisions, here is my code below.
#include<iostream>
using namespace std;
int main(){
int a, b;
cout<<"Digite quantos Gol(s) o Brasil fez: ";
cin>>b;
cout<<"Digite quantos Gol(s) a Argentina fez: ";
cin>>a;
if (b>a){
cout<<"\nBrasil ganhou com "<<b<<"Gol(s)\n";
/*if (b==a){
cout<<"Brasil e Argentina empatou, ambos com "<<a<<"Gol(s)";
}*/
}
else (a==b)
cout<<"Houve empate. "<<a<<"Gol(s)";
else
cout<<"\nArgetina ganhou com "<<a<<"Gol(s)\n";
return 0;
}