Написать программу нахождения периметра параллелограмма по известным сторонам c и h (c и h — целые числа, вводимые с клавиатуры).
1)program perimetr;
var
begin
write('c=');
readln(c);
write('h=');
readln(h);
p:=2*(c+h);
writeln('p=',p);
readln;
end.
2)program perimetr;
var
c,h,p:integer;
begin
write('c=');
readln(c);
write('h=');
readln(h);
writeln('p=',p);
readln;
end.
3)program perimetr;
var
c,h,p:integer;
begin
write('c=');
readln(c);
write('h=');
readln(h);
p:=2*(c+h);
writeln('p=',p);
readln;
end.
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.