~cpp #include<iostream.h> main() { int sum=1; int i, num; cout<<" input number: "; cin>>num; if (num <= 1) /*->수정*/ return 0; else /*->수정 끝*/ for(i=num;i>1;i--) sum=sum*i; cout<<sum<<"\n"; }