Question: 2 . Design the algorithm and then w rite a C program to read the value of an integer m and display the value of

2. Design the algorithm and then w rite a C program to read the value of an integer m and display the value of n; n is 1 when m is larger than 0,0 when m is 0 and -1 when m is less than 0. Use only the single-selection form of the if statement.

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!