Kodewick
Start learning →
Starter←→0 / 86

The Bigger One

#068Starterif (a > b)3 min

Two numbers sit in a and b. Compare them and show the bigger one. Here a is 14 and b is 9, so the answer is 14.

Should show
14
main.cpp
#include <iostream>
using namespace std;

int main() {
    int a = 14;
    int b = 9;
    // your code here: compare a and b and show the bigger one
    return 0;
}
Ctrl + Enter runs too
Result

Run tries the examples. When they look right, Submit.