1.

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

Answer»

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;



Discussion

No Comment Found