1111

郑震云  •  3个月前


include <stdio.h>

include <math.h>

int main() {

double a, d, c;
scanf("%lf", &a);
if (a > 0) {
	d = sqrt(a);
	printf("%0.5lf", d);
}
if (a < 0) {
	c = a * a;
	printf("%.5lf", c);
}
return 0;

}


评论:

请先登录,才能进行评论