Question: 1 Complete the program below so that it displays the value of n and the message is positive. if n is positive. If n is

 1 Complete the program below so that it displays the value

1 Complete the program below so that it displays the value of n and the message" is positive." if n is positive. If n is negative, the program should display the value of n and the message " is negative." If n is zero, the program should produce no output at all. (6 pts) #include Int main (void) double ni printf ("Enter a number> ") scanf("%lf", &n); return 0 2 Evaluate the following logical expression assuming a is 5, flag is 1 and c is 15 (4 pts) a != 3 && flag 11 c >-10 Note: in c programming, 0 is false and 1 is true 23. Write a nested for loop to display the following shape. (10 pts) 8* 8 **44 24. Write a do-while loop that repeatedly scans integer values until a positive even number is input. You may assume the input data is a list of integers separated by blanks, and that there is a positive even number in the list (6 pts)

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!