Computer Science, asked by Priyanshikhatod, 5 months ago

please explain any one of this

Attachments:

Answers

Answered by sakshikesralikar
1

Answer:

(i) import java.util.Scanner;  

public class AreaAndCircumferenceOfCircle  

{  

public static void main(String args[])  

{  

double circumference, area;    

int radius;  

//object of the Scanner class  

Scanner sc=new Scanner (System.in);  

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

radius=sc.nextInt();  

//calculating area of circle  

area=Math.PI*(radius*radius);  

//prints the calculated area  

System.out.println("The area of the circle is: "+area);  

//calculating circumference of circle  

circumference=Math.PI*2*radius;  

//prints the calculated circumference  

System.out.println("The circumference of the circle is: "+circumference);  

}  

}

i hope this will help you.  

Explanation:

Answered by Abduljaleel221940
1

Answer:

Hello I told to answer my question in kannada but why hindi?

Similar questions