figura12

Zaid · November 19, 2020 · C++
#include <iostream>
using namespace std;
double a,b,c,d,superficie;
int main(int argc, char *argv[]) {
	cin>>a;
	cin>>b;
	cin>>c;
	cin>>d;
	superficie = (a+b)*(d+c)-(c*a);
	cout<<"Superficie: "<<superficie;
	return 0;
}

Comments

Please sign up or log in to contribute to the discussion.