Write a program using float type
variables to find the area and
perimeter of a square whose side is
12.5cm?
Answers
Answered by
2
Answer:
Python
side = 12.5
perimeter = 4 * side
area = side * side
Java
public class Main {
public static void main(String[] args) {
double side = 12.5;
double area = side * side;
double perimeter = 4 * side;
}
}
Similar questions