Write an ifelse statement that checks patronage If 55 or gre

Write an if-else statement that checks patronage. If 55 or greater, print \"Senior citizen\", otherwise print \"Not senior citizen\" (without quotes). End with newline #include using namespace std; int main() {int patronAge = 0; patronAge = 55;/* Your solution goes here */return 0;}

Solution

if( patronAge >= 55 ) { // if condition is true then print the following cout << \"Senior Citizen;\" << endl; }else { // if condition is false then print the following cout << \"Not Senior Citizen\" << endl; } cout << \"value of a is : \" << a << endl; return 0; }
 Write an if-else statement that checks patronage. If 55 or greater, print \

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site