Computer Science, asked by marwahavansh7460, 11 months ago

Algorithm of area of circle

Answers

Answered by royalsuraj007
2

Answer:

An algorithm, flowchart and C-Code to find area and circumference of the Circle.

An algorithm to find area and circumference of the Circle.

START

Input Radius of Circle as R

Assign Value of PI = 3.14

Calculate Area= PI * R * R

Calculate Circumference Circum= 2 * PI * R

Print Value of Area and Circum

END / STOP

Flowchart to find area and circumference of the Circle.

Answered by samarthkrv
0

Answer:

import java.util.Scanner;

public class Main

{

public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

 System.out.print("Enter radius of the circle:");

 double rad = sc.nextDouble();

 double area = 3.14159265359*rad*rad;

 System.out.println("The area of circle with radius " + rad + " is " + area);

}

}

Explanation:

Similar questions