Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- program SummProiz;
- var a,sum,pro : integer;
- begin
- sum := 0;
- pro := 1;
- for a := 1 to 5 do begin
- sum := sum + a;
- pro := pro * a;
- end;
- writeln('Сумма = ', sum);
- Writeln('Произведение = ', pro);
- end.
Add Comment
Please, Sign In to add comment