Skip to content

jitvan/hello-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

hello-world

my first repository!!!! lets code!!!! import java.util.Scanner;

import java.math.BigInteger;

class BigFactorial

{

public void main()

{

int n, c;

BigInteger inc = new BigInteger("1");

BigInteger fact = new BigInteger("1");


Scanner input = new Scanner(System.in);

System.out.println("enter"); int l=input.nextInt();

for(int i=1;i<=l;i++)

{

    n = input.nextInt();


for (c = 1; c <= n; c++) {

  fact = fact.multiply(inc);

  inc = inc.add(BigInteger.ONE);

}


System.out.println(""+fact);

}

}

}

About

my first repository!!!!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published