Skip to content

Simple interest

Pascal formula + output

Flowchart (ISO 5807)

StartInput p, r, tinterest = prt / 100Output interestEndFigure 1 — SimpleInterest

Source code

Pascal
program SimpleInterest;
var p, r, t, interest: real;
begin
  readln(p, r, t);
  interest := p * r * t / 100;
  writeln(interest);
end.

The editor opens with this code — change it and the chart redraws.

Language
Pascal
Constructs
formula + output
Topic
Input/Output
Formats
Word, Visio, draw.io, PDF, SVG

Related examples