c++
Объяснение:
#include <iostream>
using namespace std;
const float V = 0.0002;
int Arhimed(int plot) {
return plot * V * 10;
}
int main() {
int plot;
cout << "Vvedite plotnost (rg/m^3): ";
cin >> plot;
if(plot <= 0) {
cout << "Error!";
else {
cout << "Arhimed force = " << Arhimed(plot);
return 0;
c++
Объяснение:
#include <iostream>
using namespace std;
const float V = 0.0002;
int Arhimed(int plot) {
return plot * V * 10;
}
int main() {
int plot;
cout << "Vvedite plotnost (rg/m^3): ";
cin >> plot;
if(plot <= 0) {
cout << "Error!";
}
else {
cout << "Arhimed force = " << Arhimed(plot);
}
return 0;
}