Decode School

Decode School - The School for Problem Solvers

Welcome to my blog. Subscribe and get my latest blog post in your inbox.

Java Program to find area of Circle (Use Constant)

Get radius of circle and find area of circle.

Sample Input 1:

4

Sample Output 1:

50.24

Program or Solution

					    
							
					    
					

Program Explanation

Get radius of a circle (using scanner class) Calculate area by multiplying pi and radius and radius (area =pi*radius*radius) (pi is 3.14 , global constant) Print area (using system.out.println)