C. Calculate area of square with side a.(using math.h ,pow)
#include<stdio.h>
#include<math.h> // to use {POW} math.h library is used
int main()
{
int side;
printf("Enter value of the Side:");
scanf("%d",&side);
printf("The Value of area is:%f", pow(side,2)); //in math.h library pow returns double
return 0;
}
Comments
Post a Comment