C Program To Calculate Area of a Square using its Side

preview_player
Показать описание

Lets write a C program to find area of a square by using length of its side. We ask the user to input the length of its side.

Formula To Calculate Area of Square using its side
area = side x side.

Note: All the sides of a square are equal.

Expected Output for the Input
User Input:
Enter the length of side of a square
5

Output:
Area of the Square is 25.00

C Programming Interview / Viva Q&A List

C Programming: Beginner To Advance To Expert
Рекомендации по теме