字體:小 中 大 | |
|
|
2007/12/27 22:37:29瀏覽484|回應0|推薦0 | |
#include <stdio.h> main() { int a,b,n; n=1; do{ printf("Guess %d ",n); printf("Input you Guess a number(1~999):"); scanf("%d",&a); if(a==520) printf("Yes ! You Good Guess ."); else printf("NO~NO~ Try Again\n"); if(a>520) printf("OH~ OH~ The Number Is~ Too Big!\n"); if(a<520) printf("OH~ OH~ The Number Is~ Too Small!\n"); n++;}while(a!=520); } |
|
( 知識學習|語言 ) |