2013年8月20日

关于条件运算符 ?:的小程序

摘要: 给定平方英尺,算出需要多少罐油漆······· 1 #include 2 #define percane 200 //每一罐能喷英尺数 3 int main(void) 4 { int cans,sqpaint; 5 6 printf("Enter the areas to be painted "); 7 8 while(1 == scanf("%d",&sqpaint)) 9 { cans = sqpaint / percane;10 cans += ((sqpaint % 阅读全文

posted @ 2013-08-20 17:29 イケメンおっさん_汪汪 阅读(303) 评论(0) 推荐(0) 编辑

导航