Write a c program to calculate the area of a square - CodeTextPro | Free Web Tutorial

Codetextpro Provides free Web tutorial, HTML, CSS, C, C++, Java, JavaScript, PHP, MySql, Python, Program, Programming Notes, Programming Questions and more.

Programming

Friday, January 4, 2019

Write a c program to calculate the area of a square

calculate the area of a square

#include<stdio.h>
#include<conio.h>
main()
{
float a,z=0;
printf("enter length of side of squair");
scanf("%f",&a);
z=(a*a);
printf("the area of a squair=%f",z);
getch();
}

No comments:

Post a Comment