标签:printf else scan cpp for turn scanf love return
#include <stdio.h>
int main()
{
int n;
scanf("%d", &n);
int i;
for(i=1; i<=n; ++i)
{
if(i!=1)
printf(" that ");
if(i%2!=0)
printf("I hate");
else
printf("I love");
}
printf(" it\n");
return 0;
}
标签:printf else scan cpp for turn scanf love return
原文地址:https://www.cnblogs.com/ozxics/p/11198787.html