10(2) = 1*2^1 + 0*2^0 = 2 (10)
10(2) + 10(10) = 2(10) + 10(10) = 12(10)
ответ 12
Uses crt;
var n: Integer;
begin
read(n);
clrscr;
if (n mod 3) = 0 then writeln('Является') else
writeln('Не является');
end.
<span>#include <iostream>
using namespace std;
int main() {
double a,b,c,d;
cout << "Параметры ямы: ";
cin >> a >> b >> c;
cout << "Объем воды: ";
cin >> d;
if (a*b*c>=d) cout << "YES";
else cout << "NO";
return 0;
<span>}
Пример:
</span><span>Параметры ямы: 2 1.8 0.4
Объем воды: 3.2
NO</span></span>
<span>def slovo(n)<span>:
</span> print("Найбільше букв в слові: ",max(n.split(),key=len) )
print("Його довжина: ",len(max(n.split(),key=len)) )
n = str(input("Введіть речення: \n"))
slovo(n)</span>