摘要: if (expression) statement 阅读全文
posted @ 2017-04-02 20:31 Micheal_you 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 int main(void){ 4 const int FIRST_OZ = 46; 5 const int NEXT_OZ = 20; 6 int ounces, cost; 7 8 printf(" ounces cost\n"); 9 for (ounces = 1, cos... 阅读全文
posted @ 2017-04-02 12:16 Micheal_you 阅读(142) 评论(0) 推荐(0) 编辑
摘要: REMEBER : You should limit yourself to using only < and > in floating-point comparisons. while(status == 1) is ture. and while(status = 1) is ture ... 阅读全文
posted @ 2017-04-02 11:59 Micheal_you 阅读(164) 评论(0) 推荐(0) 编辑
摘要: REMEBER: A for loop is appropriate when the loop involves initializing and updating a variable, and a while loop is better when the conditions are oth 阅读全文
posted @ 2017-04-02 11:43 Micheal_you 阅读(117) 评论(0) 推荐(0) 编辑