간단한 Factorial~
/** factorual [다음] input number(2~9)? 5 1 * 2 * 3 * 4 * 5 = 결과 */ class Assignment2 { public static void main(String[]args) throws Exception{ int fac,result=1; while(true) { System.out.print("\nInput number(2 ~ 9)? "); fac=System.in.read()-'0'; System.in.read(); if(fac9) System.out.println("Input Error!\nTry Again!"); else break; } for(int i=1;i