![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java语言程序设计 第五章课后题
差劲的厉害了
一个正在努力学习的大学生
展开
-
Java语言程序设计 例题5.27(显示闰年)
**5.27 (Display leap years) Write a program that displays all the leap years, ten per line, from 101 to 2100, separated by exactly one space. Also display the number of leap years in this period.**5.27(显示闰年)编写一个程序,显示从101到2100的所有闰年,每行10个,用一个空格隔开。还显示此期间的闰年数。原创 2022-06-13 16:36:42 · 366 阅读 · 0 评论 -
Java语言程序设计 例题5.15(显示ASCII字符表)5.24(数列求和)
*5.15 (Display the ASCII character table) Write a program that prints the characters in the ASCII character table from ! to ~. Display ten characters per line. The ASCII table is shown in Appendix B. Characters are separated by exactly one space.5.15(显示ASC原创 2022-06-13 16:22:33 · 260 阅读 · 0 评论 -
Java语言程序设计 例题5.5(从公斤到磅和从磅到公斤的转换)
5.5 (Conversion from kilograms to pounds and pounds to kilograms) Write a programthat displays the following two tables side by side:Kilograms Pounds | Pounds Kilograms1 2.2 | 20 9.093 6.6 | 25 11.36...197 433.4 | 510 231.82199 437.8 | 515 234.095原创 2022-05-16 23:12:41 · 745 阅读 · 0 评论 -
Java语言程序设计 例题5.11(寻找能被5或6整除,但不能被同时整除的数)
5.11 (Find numbers divisible by 5 or 6, but not both) Write a program that displaysall the numbers from 100 to 200, ten per line, that are divisible by 5 or 6, but notboth. Numbers are separated by exactly one space.5.11(寻找能被5或6整除,但不能被同时整除的数)编写一个程序,显..原创 2022-05-16 20:42:15 · 1306 阅读 · 0 评论 -
Java语言程序设计 例题5.4(英里和公里的转化)
5.4 (Conversion from miles to kilometers) Write a program that displays the followingtable (note that 1 mile is 1.609 kilometers):Miles Kilometers1 1.6092 3.218...9 14.48110 16.0905.4(英里和公里的转化)写一个程序显示下表(注意1公里等于1.609公里):Miles Kilometers1 1.6092原创 2022-05-16 19:19:40 · 1334 阅读 · 0 评论