Question: 1. Develop a C program to input a number and find its square root if it is positive and power 2 in case of negative.

1. Develop a C program to input a number and find its square root if it is positive and power 2 in case of negative. 2. Develop a C program to input a number and find its power 2 if it belongs to [0,5], square root if it is greater than 5 and no change in case of negative.

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 Programming Questions!