#include <stdlib.h>
#include <math.h>
#define PI 3.14
float area(int data)
int main(void)
{
int i
float num
scanf("%d",&i)
num=area(i)
printf("面积%f:",num)
}
float area(int data)
{
int test
float h
tset=data
h=PI*pow(test,2)
return h
}
#include <stdio.h>#define PI 3.14
double area(double r){
return PI*r*r
}
int main()
{
double r,s
scanf("%lf",&r)
s = area(r)
printf("%.2lf",s)
return 0
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)