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 <iostream>
using namespace std;
int main() {
int patronAge;
cin >> patronAge;
/* Your solution goes here */
return 0;
}
1
Expert's answer
2019-12-05T10:33:53-0500
#include <iostream>
using namespace std;
int main() {
int patronAge;
cin >> patronAge;
if (patronAge>55) cout << “Senior citizen” <<endl;
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment