Quick actions

cmd+k|ctrl+k

Navigation

Languages

lab2 

Snippet info

Language

Cpp

Visibility

public

Author

enifmankalinan

Created

2018-11-25T20:48:00Z

Updated

2018-12-03T21:26:35Z

#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