include <stdio.h> #include <math.h> int main() {int a,b;float c;printf(" ");for(a=0;a<10;a++)printf("%6d",a);printf("\n");for(a=0;a<10;a++){ printf("%6d",a);for(b=0;b<10;b++){c=sqrt(10*a+b);printf("%6.3f",c);}printf("\n");}return...
void main(){ double x,y;scanf("%lf",&x);if(x>1)y=x*x+1;if(x>=-1&&x<=1)y=x*x;if(x<-1)y=x*x-1;printf("%lf",y);}
程序如下:include<stdio.h> include<math.h> main(){ int sum=0,i;float p;for(i=1;i<=10;i+=2)s+=i*i;p=sqrt(sum);printf("%d",(int)p);} 有什么问题请留言。