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();
}
#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();
}
0 Comments