#include <iostream>
using namespace std;
int main()
{
double a,b;
cin>> a >> b;
if(a>b) cout << "Перше число більше";
else cout << "Друге число більше";
return 0;
}
<span>В 6 заливаем литр. Потом отливаем из 6 два литра в двухлитровую. В 6 литровой остается 4 литра. Затем из 2 литровой переливаем в 5 литровую.</span>
Сперва разберёмся, какие значения может принимать каждая переменная:
i, k: integer - целые числа
x, y: real - дробные и целые числа
n: char - один символ
z: Vremia_God - Win, Spr, Sum или Otm.
Опираясь на это, получаем следующий ответ:
1-f,d
2-a,e
3-a,e
4-a,c,e
5-b
6-a,c,e
#include <iostream>
using namespace std;
int main() {
cout << 7 * 8 / 2; // S = a * h / 2;
return 0;
}
=========================================================
#include <iostream>
using namespace std;
int main() {
int d;
cout << "d = ";
cin >> d;
cout << d * 12 / 2; // S = d1 * d2 / 2;
return 0;
}
=========================================================
#include <iostream>
using namespace std;
int main() {
int ml, botb;
cout << "Enter middle line = ";
cin >> ml;
cout << "Enter the bottom base = ";
cin >> botb;
cout << "The top base = " << 2 * ml - botb;
return 0;
}