#include <stdio.h>
#include <stdlib.h>
#include <math.h>
float output()
{
float a, surface_area;
printf("Enter the side of the square:-\n");
scanf("%f", &a);
surface_area = 6 * a * a;
return surface_area;
}
float main()
{
system("cls");
float dis;
dis = output();
printf("Surface area of square is:- %f", dis);
return 0;
}
//........Coded by YASH ALLAPURIA
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP