Computer Science, asked by anjanasharma6606, 7 months ago

WAP to enter length and breadth and check whether it is square for java program​

Answers

Answered by Anonymous
0

Answer:

In this tutorial we will learn how to calculate area of Square. Following are the two ways to do it:

1) Program 1: Prompting user for entering the side of the square

2) Program 2: Side of the square is specified in the program’ s source code.

Answered by Anonymous
5

Answer:

Procedural Programming:

Procedural Programming can be defined as a programming model which is derived from structured programming, based upon the concept of calling procedure. Procedures, also known as routines, subroutines or functions, simply consist of a series of computational steps to be carried out. During a program’s execution, any given procedure might be called at any point, including by other procedures or itself.

Object Oriented Programming:

Object oriented programming can be defined as a programming model which is based upon the concept of objects. Objects contain data in the form of attributes and code in the form of methods. In object oriented programming, computer programs are designed using the concept of objects that interact with real world. Object oriented programming languages are various but the most popular ones are class-based, meaning that objects are instances of classes, which also determine their types

Similar questions