codedamn

Calculate factorial of a given number.

Created by Piyush Garg about a year ago

0

No description provided

1 Comment

    1

    import java.util.Scanner; public class Main {

    public static void main(String args[]) { // Write your code here... Scanner scan = new Scanner(System.in); int i = scan.nextInt(); int j = 1; for(int k = i;k >= 1;k--){ j = j*k; } System.out.print(j); } } //Tis code is working absolutely fine on terminal but still showing test case not passed , i dont know why ,any help .

    @pranshubasak

    Pranshu Basak

    @pranshubasak

Your comment