Area of square

 #include<stdio.h>

#include<math.h>


int main(){

    int side;

    printf("Enter the value of side\n");

    scanf("%d", &side);

    printf("The value of area is %f", pow(side,2));


    return 0;

}

Comments

Popular posts from this blog

Snake game.c

Type declaration

Array with function