文件名称:leap20
介绍说明--下载内容均来自于网络,请自行研究使用
输入:以十进制的形式读入要判断的年份,从键盘取得的一个十进制数转换为二进制数存入BX寄存器中,再将BX中的内容保存在变量year中。
判断:首先将year中的内容首先除以4,不能被4整除,则一定不是闰年,能被4整除的,需再将year中的内容除以100,不能被100整除的,则一定是闰年,能被100整除的,需再将year中的内容除以400,能被400整除的,则是闰年,不能被400整除的,则不是闰年。
输出:经判断后,是闰年的输出“This is a leap year!”,不是闰年的则输出“
This is not a leap year! ”,然后输出是否要继续判断另一年份是否是闰年的提示字符串“ Continue jugding(y/n)?”,输入‘y’,则输入要判断的年份,输入其它字符则结束程序。
-input : in the metric system in the form of reading the judgment of the Year, from the keyboard of a decimal to binary number into BX register, BX then the content stored in the variables which year. Judgment : the first year of the contents of the first four dividing, not divisible by four, then it is definitely not a leap year, can be divisible by four. need further year divided by the content of 100, can not be divisible by 100, it must be a leap year, be divisible by 100, then take the year divided by 400 elements, be divisible by 400, it is a leap year, can not be divisible by 400, it is not a leap year. Output : judgment, the output is a leap year, "This is a leap year!" , it is not a leap year the output "This is not a leap year!" , Output then judge whether to c
判断:首先将year中的内容首先除以4,不能被4整除,则一定不是闰年,能被4整除的,需再将year中的内容除以100,不能被100整除的,则一定是闰年,能被100整除的,需再将year中的内容除以400,能被400整除的,则是闰年,不能被400整除的,则不是闰年。
输出:经判断后,是闰年的输出“This is a leap year!”,不是闰年的则输出“
This is not a leap year! ”,然后输出是否要继续判断另一年份是否是闰年的提示字符串“ Continue jugding(y/n)?”,输入‘y’,则输入要判断的年份,输入其它字符则结束程序。
-input : in the metric system in the form of reading the judgment of the Year, from the keyboard of a decimal to binary number into BX register, BX then the content stored in the variables which year. Judgment : the first year of the contents of the first four dividing, not divisible by four, then it is definitely not a leap year, can be divisible by four. need further year divided by the content of 100, can not be divisible by 100, it must be a leap year, be divisible by 100, then take the year divided by 400 elements, be divisible by 400, it is a leap year, can not be divisible by 400, it is not a leap year. Output : judgment, the output is a leap year, "This is a leap year!" , it is not a leap year the output "This is not a leap year!" , Output then judge whether to c
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 77433631leap20.rar 列表 leap20\leap.doc leap20