Create 705A.cpp
parent
e704b827ac
commit
38a800c66d
|
@ -0,0 +1,26 @@
|
|||
#include <cstdio>
|
||||
int main()
|
||||
{
|
||||
int n;
|
||||
scanf("%d",&n);
|
||||
for(int i=0;i<n-1;i++)
|
||||
{
|
||||
if(i%2==0)
|
||||
{
|
||||
printf("I hate that ");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("I love that ");
|
||||
}
|
||||
}
|
||||
if(n%2==1)
|
||||
{
|
||||
printf("I hate it\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("I love it\n");
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue