#include <unistd.h> int main(){ int i = 0; while (1) { if (i % 2 == 0) { printf(" *** *** "); printf(" *** *** "); printf("********* "); printf(" ******* "); printf(" **** "); printf(" ** "); }else { printf(" "); printf(" ** ** "); printf(" ******* "); printf(" ***** "); printf(" ** "); } sleep(1); i++; } }
版权声明:本文为博主原创文章,未经博主允许不得转载。