摘要:
#includeint main(void){ int i, n; double x,y,Y; printf("Enter n :"); scanf("%d",&n); printf("Enter x:"); scanf("%lf",&x); for(i=0;i<=n;i++){ y=x*x; Y=x*y; printf("%lf",Y); } return 0;} 阅读全文
摘要:
#includeint main(void){ int kwh; double free; printf("Enter kwh:"); scanf("%d",&kwh); if(kwh<=50){ free=0.53*kwh; printf("%.2f\n",free); } else{ free=0.53*50+0.58*(free-50); printf("%.2f\n",free); } return 0;} 阅读全文