#include <iostream>
#include <cmath>
using namespace std;
int main() {
int n;
cin >> n;
int s = int(n / 100), e = n % 10;
int d= int(n / 10) % 10;
cout << "Искомый остаток равен " << (s * d * e) % (s + d + e) << "\n";
cout << s << e << d << "\n";
return 0;
}
Var
a, b, c:integer;
begin
readln(a, b, c);
if (a<b) then begin
if (a<c) then
writeln(a);
end
else
if (b<c) then
writeln(b)
else
writeln(c);
end.
<em>Текстовая информация.</em>
Ответ:
#include <iostream>
using namespace std;
int main()
{
unsigned long p, pp;
int F, n, i;
setlocale(LC_ALL, "russian");
cout << "Население = ";
cin >> p;
cout << "Прирост = ";
cin >> F;
cout << "n = ";
cin >> n;
i = 0;
pp = p;
while (pp < p * n) {
pp += (int) pp / F;
i++;
}
cout << "\nЧерез " << i << " лет";
}