#include<stdio.h> int main() { int onOff; char keyOnOff; onOff=1; while(onOff) { //put your code in here. int arr[9]={1,2,3,4,5,6,7,8,9}; int i; int n; printf(" 구구. n ."); scanf("%d",&n); for(i = 0 ; i < 9 ; i++) { printf("%d * %d = %d\n",n,arr[i],n*arr[i]); } //code zone is end. printf(" 겠까? (y/n)\n\n"); keyOnOff=getch(); switch(keyOnOff) { case 'y': onOff=1; break; case 'n': onOff=0; break; default : break; } } }
// 고 on/off .
¶
- ㅋㅋㅋ 게 공. 근 getch() stdin 값 계 길 . 그 fflush(stdin); getch() 게 . 근 까 n 거 while 계 갈?-
- fflush() output stream 고, fflush(stdin) MS 거 linux 고 까 그 . -
void trash(void) { int c; while ((c=getchar()) != EOF && c != '\n'); }고 : http://rantis7.egloos.com/2404014