#include <iostream>
using namespace std;
int main()
{
int score_a;
cin >> score_a;
cout << "Score A: " << score_a;
int score_b;
cin >> score_b;
cout << "\n Score B: " << score_b;
if (score_a > score_b) {
cout << "\n A won";
} else if (score_b > score_a) {
cout << "\n B won";
} else {
cout << "\n Game tied";
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: