Answers

2014-02-27T21:44:56+05:30
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader;   public class ReadConsoleSystem {   public static void main(String[] args) {         int fact = 0;         System.out.println("Enter an integer : ");           BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in));               int n = bufferRead.readLine();                         for(i=1;i<=n;i++) {    fact = fact * i; }               System.out.println(fact);     } }



0
i think fact =1 and not 0
yes you are right i made a mistake in assigning.