Question: can someone please make thsi to when the input is 6 2 the output is age out of range? but do not use any and
can someone please make thsi to when the input is the output is age out of range? but do not use any andor operators please!
#include
using namespace std;
int main
int age, pitches;
cin age;
cin pitches;
int restDays ;
if age
if age
if pitches
restDays ;
else if pitches
restDays ;
else if pitches
restDays ;
else if pitches
restDays ;
else if age
if age
if pitches
restDays ;
else if pitches
restDays ;
else if pitches
restDays ;
else if pitches
restDays ;
else
cout "age out of range" endl;
return ;
else
cout "age out of range" endl;
return ;
if restDays
cout restDays rest day required" endl;
else
cout restDays rest days required" endl;
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
