Archived
1
0
Fork 0
This repository has been archived on 2023-11-10. You can view files and clone it, but cannot push or open issues or pull requests.
SLOTH/examples/area.sl

13 lines
157 B
Text
Raw Normal View History

2018-09-18 22:50:15 -04:00
% program to calculate area of a circle
PI := 3.1416;
% get input
radius := input;
% calculate area
area := PI * radius * radius;
% output
print area;