DECLARE radius NUMBER := &radius; area NUMBER; BEGIN area := 3.14159 * radius * radius; DBMS_OUTPUT.PUT_LINE('Radius: ' || radius); DBMS_OUTPUT.PUT_LINE('Area of the circle: ' || area); END; /
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter