to find square of the given number sample:5 in pseudo code
Answers
Answered by
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
Social Sciences,
2 months ago
Science,
2 months ago
Hindi,
4 months ago
English,
4 months ago
Hindi,
10 months ago