Answers

2015-12-21T20:25:46+05:30
#include #include int main() Clrscr; { const float PI = 3.14; float radius; double area; cout << " C++ Program to Find Area of Circle" << endl; cout << " Enter Radius : "; cin >> radius; area = PI * radius * radius; cout << " Area of Circle = " << area << endl; return0; }
0
2015-12-26T13:46:23+05:30
JAVA PROGRAM;

import java.util.*
import java.io.*
class area
{
 public static Scanner in=new Scanner(System.in);
public static void main (String args[])
{
 double pi=3.14,r,area;
System.out.print("enter r")
r=in.nextDouble();
area=pi*r*r;
System.out.print("area="+area);
}
}
0
note:
import java.io.*; import java.util.*;