Menu
Question Index
...

Write a program to calculate the total number of permutations possible.

Input (Integer, Integer) Output (Integer)
13P3 1716
6P2 30
8P1 8
10P0 1
5P5 120
0P5 null



class NumberOfPermutations
{
    public static void main(String s[])
    {
        System.out.println("Total number of permutations of 13P3 : " + numberOfPermutations(13, 3));

    }


    public static Integer numberOfPermutations(int total, int choiceCount) {
    }

}

Doubts

Problems

Topic: for Loop In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App