smarttools/tests/diagram.puml

11 lines
202 B
Plaintext

@startuml
start
:Set a = 5;
:Set b = 6;
:Set c = 7;
:Calculate semi-perimeter s = (a + b + c) / 2;
:Calculate area = sqrt(s*(s-a)*(s-b)*(s-c));
:Print "The area of the triangle is [area]";
stop
@enduml