Write a program to print the area of square in c

Write a program to print the area of square in c. The length and area of the square in c programming language for beginners to understand the mathematical ideas in c language

#include<stdio.h>
int main()
{
float length, area;
printf("Enter length of Square: ");
scanf("%f", &length);
area = length*length;
printf("\nArea = %0.2f", area);
return 0;
}

 

Output:

Enter length of Square:

 5

Area = 25.00