var amount, sum, multi, i: integer;
begin
amount:= 0;
sum:= 0;
multi:= 1;
for i:=1 to 51 do begin
if i mod 12 = 0 then begin
writeln(i);
amount:= amount + 1;
sum:= sum + i;
multi:= multi * i;
end;
writeln(amount, ' ', sum, ' ', multi);
end.
amount = 0
sum = 0
multi = 1
for i in range(1, 51):
if i % 12 == 0:
print(i)
amount += 1
sum += i
multi *= i
print(amount, ' ', sum, ' ', multi)
відповідь: function showresult(choise){
var n1=parsefloat(document.getelementbyid('num1').value);
var n2=parsefloat(document.getelementbyid('num2').value);
var r;
var c=choise;
switch(c)
{
case '1':
r=n1+n2;
break;
case '2':
r=n1-n2;
case '3':
r=n1*n2;
case '4':
r=n1/n2;
case '5':
r=n2*100/n1;
default:
}
document.getelementbyid('result').value=r;
calculator
+
-
*
/
%
пояснення:
var amount, sum, multi, i: integer;
begin
amount:= 0;
sum:= 0;
multi:= 1;
for i:=1 to 51 do begin
if i mod 12 = 0 then begin
writeln(i);
amount:= amount + 1;
sum:= sum + i;
multi:= multi * i;
end;
end;
writeln(amount, ' ', sum, ' ', multi);
end.
amount = 0
sum = 0
multi = 1
for i in range(1, 51):
if i % 12 == 0:
print(i)
amount += 1
sum += i
multi *= i
print(amount, ' ', sum, ' ', multi)
відповідь: function showresult(choise){
var n1=parsefloat(document.getelementbyid('num1').value);
var n2=parsefloat(document.getelementbyid('num2').value);
var r;
var c=choise;
switch(c)
{
case '1':
r=n1+n2;
break;
case '2':
r=n1-n2;
break;
case '3':
r=n1*n2;
break;
case '4':
r=n1/n2;
break;
case '5':
r=n2*100/n1;
break;
default:
break;
}
document.getelementbyid('result').value=r;
}
calculator
my calculator first number second number result+
-
*
/
%
пояснення: