A Java program to generate the area of circle
Answers
Answered by
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.
★ ★ ★ ★ ★ ★ ★ ★
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
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
Science,
7 months ago
Math,
7 months ago
Social Sciences,
7 months ago
Science,
1 year ago
Social Sciences,
1 year ago