pages

Thursday, 8 April 2021

c-program to calculate the area of the square in c-programing.

 program to calculate the area of the square? 

In this program we will now takes input form the user and calculate the area of the square in c-programming langauges.

#include<stdio.h>
#include<conio.h>
void main()
{
   int a,area=0;
   printf("enter the side of the square");
   scanf("%d",&a);
   area=a*a;
   printf("the area of the circle is %d",area);
   getch();

}


No comments:

Post a Comment