Question: Write an if-else statement for the following: If userTickets is less than 5, execute awardPoints 1. Else, execute awardPoints -userTickets Ex: If userTickets is 3,

 Write an if-else statement for the following: If userTickets is less

Write an if-else statement for the following: If userTickets is less than 5, execute awardPoints 1. Else, execute awardPoints -userTickets Ex: If userTickets is 3, then awardPoints 1 11#include 2 3 int main(void) t 4 int awardPoints; 5 int userTickets; 6 scanf("%d", susertickets); // Program will be tested with values : 3, 4, 5, 6. IV. Your solution goes here 10 11 printf("%din", awardPoints) ; 12 return 0 13 ) 14

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!