C Program for Area and Perimeter of Square

 #include<stdio.h>

void main()

{

    int a;

    printf("Enter side: ");

    scanf("%d",&a);

    printf("Area = %d\n",a*a);

    printf("Perimeter = %d",4*a);

}

Comments

Popular posts from this blog

Single Program Using All Automatic String Functions

C program for subtraction of two matrices (2D Arrays)

C program for Multiplication of Two matrices