Computer Science, asked by charithreddy2008, 1 month ago

Write the algorithm for the following
(a)Accept the radius of a circle and display the area and circumference.
[Area= π*r*r and Circumference=2 π r]
(b)Accept the two numbers and display the product and quotient of these two numbers
Pls tell the correct answer

Answers

Answered by nidhi1531
0
Its a java program :-
Q1)

Import java.util.*;
Class cls
{
Public static void main()
{
Scanner sc = new Scanner(System.in);
System.out.println(“Enter your radius”)
double a = sc.nextDouble();
double b = ((22/7)*a*a;
double c = (2*(22/7)*a;
System.out.println(“Area :” +b);
System.out.println (“circumference :” +c);
}
}


Similar questions