心跳
#include <unistd.h>
int main(){
int i = 0;
while (1) {
if (i % 2 == 0) {
printf(" *** ***\n");
printf(" *** *** \n");
printf("*********\n");
printf(" *******\n");
printf(" ****\n");
printf(" **\n");
}else
{
printf("\n");
printf(" ** ** \n");
printf(" *******\n");
printf(" *****\n");
printf(" **\n");
}
sleep(1);
i++;
}
}