登录
首页 » Asm » to-determine-a-leap-year

to-determine-a-leap-year

于 2011-10-25 发布 文件大小:1KB
0 48
下载积分: 1 下载次数: 3

代码说明:

  3、 题目:输入1842——2006年之间的十进制数。 要求: (1) 要求必须有提示信息,并独占一行。 (2) 判断是否是闰年,如果是输出“yes”,否则输出“no”。 (提示:先除100,如果除尽了再用400除如果除不尽是闰年。(如果刚才的100没有除尽则用4除,除尽则为闰年。) (3) 以二进制输出xxxx年8月29日距离1842年8月29日的月数。 (4) 以十进制输出xxxx年8月29日距离1842年8月29日的天数。 (3, the title: Enter 1842--2006 decimal number between the years. Requirements: (1) requires the existence of a message, and its own line. (2) to determine whether it is a leap year, if the output " yes" , otherwise output " no" . (Hint: first addition to the 100, except if divisible by the then 400 is a leap year if the indivisible (If you just use the 100 is not divisible by 4 except, divisible was a leap year.) (3) in the binary output xxxx August 29 from August 29, 1842 the number of months. (4) decimal output xxxx years from August 29, August 29, 1842 the number of days.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696524资源总数
  • 103945会员总数
  • 46今日下载