int weight, growth;
cout << "Enter weight:";
cin >> weight;
cout << "Enter growth:";
cin >> growth;
int ideal = growth - 110;
if (ideal == weight)
cout << "Enter weight:";
cin >> weight;
cout << "Enter growth:";
cin >> growth;
int ideal = growth - 110;
if (ideal == weight)
cout << "Ideal weight" << endl;else if (ideal > weight)
cout << "For ideal weight lacking " << ideal - weight << " kg" << endl;else
cout << "Lose weight " << weight - ideal << " kg" << endl;system("pause");
Комментариев нет:
Отправить комментарий