AreaOfCircle

Run Settings
LanguageJava
Language Version
Run Command
/* * This program will calculate the area of a circle given the radius * * C Rilett ICS3U * @author Nooraldeen */ public class AreaOfCircle { public static void main(String[] args) { String units="cm"; double pi=3.14; int radius=5, length=6, width= 8; double area=pi*radius*radius; double areaOfRec=length*width; //print results System.out.println ("The area of a circle with radius of "+radius+units+" is "+area+units+" The area of a rectangle with length of "+length+units+" and width of "+width); } }
Editor Settings
Theme
Key bindings
Full width
Lines