Write a program of calculate area of square

 Write a program of calculate area of square.


Write a program of calculate area of square




//Calculate Area Of Square
#include<stdio.h>
#include<conio.h>
void main()
{
    int a,square;
    printf("\n Enter a Value=");
    scanf("%d",&a);
    square=a*a;
    printf("\n Area Of Square=%d",square);
    //Second Method
    printf("\n Area Of Square=%d",a*a);
getch();
}








OUTPUT:- Enter a Value=5 Area Of Square=25 Area Of Square=25


















Related Program (Please Check)

1. Basic Question All



Post a Comment

0 Comments