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

Do as directed (1 point each for 1 - 5 and 2 points for 6); 1) Write an if statement that assigns 1 to x ify 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
Get step-by-step solutions from verified subject matter experts
