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 awar
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;


We have an Answer from Expert

View Expert Answer

Expert Answer


This is your code with Output , kindly check that out. Code #include
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe