Anyone could help me fix the following if statement ?
1 2 3 4 5 6 7 8 9 10
#include "stdafx.h"
#include <iostream>
usingnamespace std;
int main();
{
If (x > (1 + x * x)) {
Y = x * x
Cout<<”x = “ << x <<” and y = “ << y << “\n”;
}
#include <iostream>
usingnamespace std;
int main( ) // can't have a ';' here
{
if(x > ( 1 + x * x ) ) { // the 'i' in the if can't be cap
y = x * x;
cout << "x = " << x << " and y = " << y << endl; // the 'c' in cout can't be cap.
} // this is were you are missing that bracket
return( 0 );
}