Compute: z = sqrt y-x Ex: If the input is 3.0 4.0, then the output is: 1.0
code:
#include
#include
#include
using namespace std;
int main() {
double x;
double y;
double z;
cin >> x;
cin >> y;
/* Your code goes here */
cout << fixed << setprecision(1); // setprecision(1) outputs z with 1 decimal place.
cout << z << endl;
return 0;
}