Computer Science, asked by krishnapriya8959, 4 months ago

to find square of the given number sample:5 in pseudo code

Answers

Answered by preethamghagare
0

Answer:

To calculate the area and perimeter of a square and rectangle in Pseudocode or other programming language what you any want, you have to ask to the user to side length of the square and make two variable, one for area and one for perimeter for each to perform the mathematical calculation and display the result on the output screen.

int side,area,perimeter;

read side;

area=side*side;

perimeter=4*side;

print area;

print perimeter;

1

2

3

4

5

6

7

8

int side,area,perimeter;

read side;

area=side*side;

perimeter=4*side;

print area;

print perimeter;

Similar questions