Thu Jul 14, 2011 1:00 pm
//compute area of the circle.
class area{
public static void main(String[] args)
{
double pi,a;
pi=3.1415;
for(int r=1;r<5;r++)
{
a=pi*r*r;
}
System.out.println("Area of the circle is"+a);
}
}
Thu Jul 14, 2011 5:32 pm
double pi,a;
double pi=0.0d,a=0.0d;
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.