Computer Science, asked by bg100030, 4 months ago


h) Write a java program to assign radius with a value. Calculate and print perimeter of circle.​

Answers

Answered by ravi2303kumar
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