Skip to content

Conversation

@DoraPancar
Copy link
Collaborator

Multiplication and division functons are added

Copy link
Owner

@osmanyasar05 osmanyasar05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this wont compile. please fix the issues.

// result = YOUR_FUNCTION(a,b);
// }
// elif(oper == YOUR_OTHER_OPERATION).........
if (oper == multiply)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oper == multiply ?

multiply is not a variable. change it with oper == "*" and oper == "/"

std::cout << a << " " << oper << " " << b << " = " << result;
}

double multiply(double a, double b)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

functions should be defined before they are used. move these up.

Copy link
Owner

@osmanyasar05 osmanyasar05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants