大一菜鳥編寫的移動的字母程序

看了啊哈c 自己用while循環靠感覺編寫的
只看了標題 並沒有看作者怎麼寫 算是原創吧吐舌頭


#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int main()
{
 int a, b;
 a = 1;
 b = 0;
 
 while(a < 100)
 {
  printf("H");
  Sleep(1000);
  system("cls");
  a ++;
  b = 1;
   while(b < a )
   {
    printf(" ");
    b ++;
   }
 }
 return 0;
}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章