write a program that generates the following output 5 10 and 9
Answers
Answered by
12
#include <iostream.h>
int main()
{
int w, x, y, z, P;
cout << "Enter values for w,x,y and z in order:\n";
cin >> w >> x >> y >> z;
P = (w+x)/(y-z)
cout << "Value of P = " << P;
return 0;
}
int main()
{
int w, x, y, z, P;
cout << "Enter values for w,x,y and z in order:\n";
cin >> w >> x >> y >> z;
P = (w+x)/(y-z)
cout << "Value of P = " << P;
return 0;
}
Similar questions