If a is greater than b then if a is greater than 300 multiply a by 7. Otherwise— in case a is not greater
than b—multiply a by 10.
Use only two if and one else. Make sure your else is paired with the correct if. You may have to
use { }
#include <iostream>
using namespace std;
int main ()
int a, int b
{
if (a > b)
if (a > 300)
a*7
else
b > a
b*10
Does that look right else if statements confuse me.