h) Write a java program to assign radius with a value. Calculate and print perimeter of circle.
Answers
Answered by
1
Answer:
public class Perimeter_Circle{
public static void main(String args[]){
int r=7;
float pi = 3.14F;
float perimeter = 2*pi*r;
System.out.println("Perimete of the cirlce is: "+perimeter);
}
}
Similar questions