Home /
Expert Answers /
Computer Science /
please-use-c-write-an-if-else-statement-for-the-following-if-usertickets-is-equal-to-6-execute-pa628
(Solved): please use c++ Write an if else statement for the following: If userTickets is equal to 6 , execute ...
please use c++
Write an if else statement for the following: If userTickets is equal to 6 , execute awardPoints \( =1 \). Else, execute awardPoints = userTickets. Ex: If userTickets is 3 , then awardPoints \( =3 \). 1 #include 2 using namespace std; 4 int main() \{ int awardPoints: int userTickets; cin \( \gg \) userTickets; I/ Program will be tested with values: \( 5,6,7,8 \). V* your code goes here */ cout \( \ll \) awardPoints \( \ll \) endl; return 0;