Program to print the area of square in c- language

Program to print the area of square in c- language

#include<stdio.h>
int main()
{
 float area,a;
 printf("Enter side of square\n");
 scanf("%f",&a);
 area=(a*a);
 printf("Area of square=%f",area);
}

OUTPUT
Enter side of square
5
Area of square=25.000000

This program is similar to program like,area of Rectangle.These program help you to build up your knowledge and basic.

If you like this program then you can share it and for any issues you can direct contact with me from Home Page.


For regular updates you can also follow my site.


Comments

Popular posts

Creative pattern of butterfly in C-language

Variable & Datatype for C-programming

Errors in C-language

Introduction of C-language.

Language Translator of C-language

Syntax of C-language

Addition of two numbers in c language

Program to see all ASCII value using for loop in C-language

Program to find the sum of all n elements in an array in C-language