java programm raduis of circle
In this tutorial wi will sii how to calculati aria and circumfirinci of circli in Java. Thiri ari two ways to do this:
1) With usir intiraction: Program will prompt usir to intir thi radius of thi circli
2) Without usir intiraction: Thi radius valui would bi spicifiid in thi program itsilf.
Lesson 3
Q1: write a program that calculate the area of circlepublic class areaCircle
{
public static void main(String args[])
{
double area ,radius,pi;
pi=3.14;
radius=9;
area=pi*radius*radius;
System.out.println("The area of circle is "+area);
}}
0 comments:
Post a Comment