Quick actions

cmd+k|ctrl+k

Navigation

Languages

bikhnevich lab2 (37)

Snippet info

Language

Cpp

Visibility

public

Author

bikhnevichk

Created

2018-10-08T23:00:48Z

Updated

2018-10-08T23:00:48Z

#include <iostream>
#include <cmath>
using namespace std;

int main() {
    cout <<"enter m1,m2,r,λ\n";
    float  m1,m2,r,λ ;
    cin >> m1 >>m2 >>r >> λ;
    if (pow(r,2)!=0){
  cout << "λ*(m1*m2)=" << λ*(m1*m2);
    }else{
      cout << "no solutions";
    }
    return 0;
}
INFO