Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Arithmetic-Integer/Pascal/arithmetic-integer.pas
Normal file
14
Task/Arithmetic-Integer/Pascal/arithmetic-integer.pas
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
program arithmetic(input, output)
|
||||
|
||||
var
|
||||
a, b: integer;
|
||||
|
||||
begin
|
||||
readln(a, b);
|
||||
writeln('a+b = ', a+b);
|
||||
writeln('a-b = ', a-b);
|
||||
writeln('a*b = ', a*b);
|
||||
writeln('a/b = ', a div b, ', remainder ', a mod b);
|
||||
writeln('a^b = ',Power(a,b):4:2); {real power}
|
||||
writeln('a^b = ',IntPower(a,b):4:2); {integer power}
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue