看板 FJU-Stat97A 關於我們 聯絡資訊
#include <stdio.h> #include <stdlib.h> int main(void) { int i,j,k,l; do { printf("請輸入一個整數:"); scanf("%d",&k); j=1; do { i=1; while(i<=j) { printf("★"); i++; } printf("\n"); j++; }while(j<=k); printf("要繼續嗎?? (1=yes, others=no)"); scanf("%d",&l); }while(l==1); system("pause"); return(0); } -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.136.162.150