Article From:https://www.cnblogs.com/minTTremor/p/9122730.html

#include<stdio.h>
#include<stdlib.h>

int main()
{
int n;
float pi = 3.1415926;
scanf(“%d”, &n);
while (n–)
{
float m;
scanf(“%f”, &m);
float S = pi*m*m / 3;
printf(“%.2f\n”, S);

}
system(“pause”);
return 0;
}

 

 

Similar Posts:

Link of this Article: Positive triangle area

Leave a Reply

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