My issue
My code
#include <bits/stdc++.h>
using namespace std;
int main() {
int r;
int b;
r = 23;
b = 45;
if (r > b) {
cout << "Rob Scored higher marks than Bob." << endl;
} else if (r == b) {
cout << "Bob & Rob both scored the same" << endl;
}
r = 15;
b = 15;
if (r > b) {
cout << "Rob Scored higher marks than Bob.";
} else if (r == b) {
cout << "Bob & Rob both scored the same";
}
return 0;
}
Learning course: Learn C++
Problem Link: CodeChef: Practical coding for everyone