摘要: Exercise 3-3. Write a program that will calculate the price for a quantity entered from the keyboard, given that the unit price is $5 and there is a d... 阅读全文
posted @ 2014-12-17 22:17 稳稳稳稳稳稳 阅读(518) 评论(1) 推荐(0) 编辑
摘要: 无法让我不汗颜:Exercise 3-2. Write a program that prompts the user to enter the date as three integer values for the month, the day in the month, and the yea... 阅读全文
posted @ 2014-12-17 19:15 稳稳稳稳稳稳 阅读(675) 评论(0) 推荐(0) 编辑
摘要: Exercise 3-1. Write a program that will first allow a user to choose one of two options:1. Convert a temperature from degrees Celsius to degrees Fahr... 阅读全文
posted @ 2014-12-17 16:21 稳稳稳稳稳稳 阅读(293) 评论(0) 推荐(0) 编辑
摘要: #include int main (void) { double pay = 0.0; double hours = 0.0; int dollars = 0; int cents = 0; //ger the weekly pay ... 阅读全文
posted @ 2014-12-16 22:24 稳稳稳稳稳稳 阅读(333) 评论(0) 推荐(0) 编辑
摘要: // Exercise 2.3 Calculating volume price of alternative products// The only problem here is to devise a way to determine the price// for the product ... 阅读全文
posted @ 2014-12-16 21:50 稳稳稳稳稳稳 阅读(216) 评论(0) 推荐(0) 编辑
摘要: #include int main(void){ long feet = 0L; long inches = 0L; double length = 0.0; double width = 0.0; const long inches_per_feet = 1... 阅读全文
posted @ 2014-12-16 12:52 稳稳稳稳稳稳 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Exercise 2-1. Write a program that prompts the user to enter a distance in inches andthen outputs that distance in yards, feet, and inches. (For those... 阅读全文
posted @ 2014-12-13 21:17 稳稳稳稳稳稳 阅读(725) 评论(0) 推荐(0) 编辑
摘要: // Exercise 1.3 Output a name and address#include int main(void){ printf("/"It's freezing in here,\" he said coldly.\n"); return 0;} // The double... 阅读全文
posted @ 2014-12-13 19:18 稳稳稳稳稳稳 阅读(148) 评论(0) 推荐(0) 编辑
摘要: #includeint main(void){ printf("My name is xiaomi5320\n\tMy address is www.cnblogs.com/xiaomi5320\n"); return 0;}将1.1 换成一行输出。 Question: // The c... 阅读全文
posted @ 2014-12-13 18:26 稳稳稳稳稳稳 阅读(150) 评论(0) 推荐(0) 编辑
摘要: #includeint main(void){ printf("My name is xiaomi5320\n\t"); printf("My address is www.cnblogs.com/xiaomi5320\n"); return 0;} 阅读全文
posted @ 2014-12-13 18:11 稳稳稳稳稳稳 阅读(121) 评论(0) 推荐(0) 编辑