Computer Science, asked by riprip, 7 months ago

WAP to find area of square

Answers

Answered by SpaceWalker17
2

JAVA PROGRAM

public class area

{

public static void main(String args[])

{

Scanner sc=new Scanner(System.in);

System.out.println("Enter the side of square:");

int side=school.nextInt();

Area=side×side;

System.out.println("Area of square="+Area);

}

}

HOPE THIS ANSWER WILL HELP YOU!!

Answered by gaganadithyareddy9
2

Answer:

This is a python program

length = float(input("Enter length of the square: "))

breath = float(input("Enter breadth of the square: "))

print("Area of the square = ", length*breadth)

# HOPE THIS HELPS YOU!!

Similar questions