LIGHT WEIGHT BABY
)))))))unknown
c_cpp
2 years ago
806 B
8
Indexable
#include <iostream>
#include <string>
#include <Windows.h>
using namespace std;
int main() {
setlocale(LC_ALL, "russian");
//////////////////////////////////////////////////////////////////////////
cout << "Введите пол\n"; string light;
cin >> light;
//////////////////////////////////////////////////////////////////////////
cout << "Введите вес\n"; int weight = 0;
cin >> weight;
//////////////////////////////////////////////////////////////////////////
cout << "Ввдеите рост\n"; int baby=0;
cin >> baby;
//////////////////////////////////////////////////////////////////////////
double Light_Weight_Baby = (float(weight) / (float(baby)*float(baby)))*10000;
cout << Light_Weight_Baby << "\n";
}Editor is loading...