main ( ) {int y ,f ; scanf ( "% d ",&y ) ; if ( y % 400 = = 0 ) f = 1; else if ([1]) f = 1 ; else以下程序的功能是判断输入的年份是不是闰年,请在[ ]内添入正确的内容.main ( ){int y ,f ;scanf ( "% d ",&y ) ;if ( y % 400 = = 0
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/27 09:38:04
main ( ) {int y ,f ; scanf ( "% d ",&y ) ; if ( y % 400 = = 0 ) f = 1; else if ([1]) f = 1 ; else以下程序的功能是判断输入的年份是不是闰年,请在[ ]内添入正确的内容.main ( ){int y ,f ;scanf ( "% d ",&y ) ;if ( y % 400 = = 0
main ( ) {int y ,f ; scanf ( "% d ",&y ) ; if ( y % 400 = = 0 ) f = 1; else if ([1]) f = 1 ; else
以下程序的功能是判断输入的年份是不是闰年,请在[ ]内添入正确的内容.
main ( )
{int y ,f ;
scanf ( "% d ",&y ) ;
if ( y % 400 = = 0 ) f = 1;
else if ([1]) f = 1 ;
else [2] ;
if (f ) printf ( " % d is ",y );
else printf ( " % d is not " ,y) ;
Printf (" a leap year \ n ") ; }
main ( ) {int y ,f ; scanf ( "% d ",&y ) ; if ( y % 400 = = 0 ) f = 1; else if ([1]) f = 1 ; else以下程序的功能是判断输入的年份是不是闰年,请在[ ]内添入正确的内容.main ( ){int y ,f ;scanf ( "% d ",&y ) ;if ( y % 400 = = 0
main ( )
{int y , f ;
scanf ( "% d ", &y ) ;
if ( y % 400 = = 0 ) f = 1;
else if (y%4==0&&y%100!=0) f = 1 ;
else f=0;
if (f ) printf ( " % d is ", y );
else printf ( " % d is not " , y) ;
Printf (" a leap year \ n ") ; }