Question: I got some minor error. Once I tried to fix it, but I got another error at different part. so Can you help me how

I got some minor error.

Once I tried to fix it, but I got another error at different part. so Can you help me how to fix ?

C++

I got some minor error. Once I tried to fix it, but

My code :

#include #include using namespace std;

string evenOrOdd(int number) { string answer; if((number % 2) == 0) { answer = "Even"; } else { answer = "Odd"; } return answer; }

int main() { string answer; int number = 1; while (number !=0){ cout>number; cout Running Test 1 22YOUR OUTPUT2222 0001: Enter-a-number:-11 0002: Enter-a-number:-12 MISMATCH FOUND ON LINE 0002 ACTUAL : Enter a number:-12 EXPECTED: 11-15-Odd Adjust your program and re-run to test. Test 1 failed cccv1 w ZTgwY 82326@runweb3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!