摘要:
阅读全文
摘要:
#includeint main(void){ double height,radius,volume;/*定义实数型双精度浮点型变量*/ int n,i;/*定义整型变量*/ double cylinder(double r,double h);/*定义双精度浮点型变量*/ printf("Enter n"); scanf("%d",&n); for(i=1;i=0&&radius>=0){/*判断语句高度和半径是否大于0*/ volume=cylinder(radius,height); printf("Vol 阅读全文
摘要:
#includeint main(void){ int num1,num2,mix;/*定义3个整型变量*/ scanf("%d%d",&num1,&num2); mix=num1+num2;/*对mix进行赋值*/ printf("%d\n",mix); return 0;} 阅读全文