Wednesday, August 10, 2011

yea


import java.io.*;
class Factorial{
  public static void main(String[] args) {
  try{
  BufferedReader object = new BufferedReader(new InputStreamReader(System.in));
  System.out.println("enter the number");
  int a= Integer.parseInt(object.readLine());
  int fact= 1;
  System.out.println("Factorial of " +a+ ":");
  for (int i= 1; i<=a; i++){
  fact=fact*i;
  }
  System.out.println(fact);
  }
  catch (Exception e){}
  }
}

1 comment:

  1. casino free - DrMCD
    free casino. It 안산 출장안마 has been 광주광역 출장샵 quite a while since I started playing. I have tried and discovered more casinos on facebook, the 과천 출장안마 internet. I am 당진 출장샵 curious if  Rating: 대구광역 출장안마 4.8 · ‎2 votes

    ReplyDelete