Math, asked by ajbana30, 1 year ago

A Java program to generate the area of circle

Answers

Answered by Anonymous
2
Heya.....❤️❤️

★ ★ ★ ★ ★ ★ ★ ★

class AreaofCircle{
   public static void main()
   {
     {
     int r = 7;
     int Area = 22/7 * 7 * 7;
     System.out.println("Area of circle = " + Area);

     }
     }
   }

        Output

Area of circle = 154

____________________________________________________________________________________

Java is a predifined computer specialized coding.

Java follows some rules in the programs.
Answered by HelpRequest
1

Object-oriented concepts in UML

Objects Represent an entity and the basic building block.

Class Blue print of an object.

Abstraction Behavior of a real world entity.

Encapsulation Mechanism of binding the data together and hiding them from outside world.

Inheritance Mechanism of making new classes from existing one.

.............................................................................................................................................................................................................

Similar questions