Ответ:
Питон
x = int(input())
x1 = x % 10
x2 = x // 10 % 10
x3 = x // 100
print(x1 + x2 + x3, x1 * x2 * x3)
Паскаль
begin
var x := ReadInteger();
var x1 := x mod 10;
var x2 := x div 10 mod 10;
var x3 := x div 100;
print(x1 + x2 + x3, x1 * x2 * x3);
end.
Объяснение:
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
Питон
x = int(input())
x1 = x % 10
x2 = x // 10 % 10
x3 = x // 100
print(x1 + x2 + x3, x1 * x2 * x3)
Паскаль
begin
var x := ReadInteger();
var x1 := x mod 10;
var x2 := x div 10 mod 10;
var x3 := x div 100;
print(x1 + x2 + x3, x1 * x2 * x3);
end.
Объяснение: