Area of a square in c language

Area of a Square In C Language:

#include<stdio.h>

int main(){

    int area,side;

    printf("Enter the Value of Side:\n");

    scanf("%d",&side);

    area=side*side;

    printf("Value of area is :%d",area);

    return 0;

}

Output:

Enter the Value of Side:
9
Value of area is:81

Add a Comment

Your email address will not be published. Required fields are marked *