Computer Science, asked by Drishtilekhwani, 11 months ago

write a q basic program to find the area of a square​

Answers

Answered by mrudul2120
0

area of sq = side multiply by side

Answered by AskewTronics
0

The Q basic program and the output for the above question is listed below :

Output:

If the user input is "4", then the output is 16.

If the user input is "5", then the output is 25.

Explanation:

INPUT "Enter the value of a side to find the area of a Square: ",side 'Take the input from the user.

PRINT "The area of a Square is:",side*side,"for the side:",side'Print the area of square.

Code Explanation :

  • The above code is in Q-Basic programming language, in which the first line is used to take the input from the user.
  • Then the area is printed by the help of print function using the formula of area of a square.

Learn More :

  • Q-Basic : https://brainly.in/question/2343849
Similar questions