Question: #include Do as directed (1 point each for 1 - 5 and 2 points for 6): 1) Write an if statement that assigns 1 to

 #include Do as directed (1 point each for 1 - 5
#include

Do as directed (1 point each for 1 - 5 and 2 points for 6): 1) Write an if statement that assigns 1 to x if y is greater than 0. 2) Write an if...else statement that increment the variable pay by 3% if score is greater than 90, otherwise increases pay by 1% using conditional operator (?:). 3) Rewrite statement, C=C+3; using the abbreviated assignment operator. 4) Write 4 different statements that increment variable k by 1. 5) Write printf statement that display n1's value 23.23. Assume that variable n1 is declared in program as float n1 = 23.23 6) a) How many times does the body of the loop repeated? b) What is the printout of the code? inti 1 while(i

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!