Quick actions

cmd+k|ctrl+k

Navigation

Languages

Lab 2(37)

Snippet info

Language

Cpp

Visibility

public

Author

buteskul5.6

Created

2018-09-26T09:47:19Z

Updated

2018-09-26T10:20:08Z

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

int main(){

	double q, w, r, F, g;
	cin >> q >> w >> r >> g;
	if (pow(r,2) == 0)
	{
		cout << "no solutions";
	}
	else
	{
		
		F = g*((q*w) / pow(r,2));
		cout << F;
	}

	return 0;
}
INFO