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
Get step-by-step solutions from verified subject matter experts
