Quick actions

cmd+k|ctrl+k

Navigation

Languages

lab4(82)

Snippet info

Language

Cpp

Visibility

public

Author

andrusus.korotkovus

Created

2018-10-25T15:30:42Z

Updated

2018-10-25T15:30:42Z

#include <iostream>
using namespace std;

int main() {
    float x, y, z;
    cin>>x>>y;
    if(x>y) {
        z = (x+y)/2;
        x = x*y*2;
        cout<<x<<" "<<z;
    } else {
        z = (x+y)/2;
        y = x*y*2;
        cout<<z<<" "<<y;
    }
    
    
    return 0;
}
INFO