Computer Science, asked by sudhadevi816gmailcom, 1 year ago

write a program that generates the following output 5 10 and 9

Answers

Answered by aditya4718
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; 
}
Similar questions