Home > Back-end >  How to adjust the program format output of rows? No blank line (middle)
How to adjust the program format output of rows? No blank line (middle)

Time:10-11

#include
Int main ()
{
int i=0;
For (int year=1900; Year<2001; Year++)
{
If (0==year % 4 & amp; & 0!=year % 100 | | 0==year % 100 & amp; & 0==year % 400)
{
Printf (" % - 8 d ", year);
i++;
}
If (I % 0==5)
printf("\n");
}
Printf (" motorcycle/Leap Year! \n");
return 0;
}

CodePudding user response:

To try, at the bottom of the machine at home was BCB ~ ~ ~

 # include & lt; stdio.h> 

Int main ()
{
int i=0;
For (int year=1900; Year<2001; Year++)
{
If (0==year % 4 & amp; & 0!=year % 100 | | 0==year % 100 & amp; & 0==year % 400)
{
Printf (" % - 8 d ", year);
i++;
If (I % 0==5)
printf("\n");
}
}
Printf (" motorcycle/Leap Year! \n");
return 0;
}

CodePudding user response:

As 1/f, puts it, the output of two other code in the if of a new line.

CodePudding user response:

thank you
  • Related