Menu
Question Index
...

Write a program to print the factors of the given number. The numbers should be separated by comma.

Input (Integer) Printed Output (Commas are also important and there are no spaces in output)
3 1,3,
8 1,2,4,8,
24 1,2,3,4,6,8,12,24,



class PrintFactorsOfNumber
{
    public static void main(String s[])
    {
        printFactorsOfNumber(25);

    }


    public static void printFactorsOfNumber(int number)
    {
    }

}

Doubts

Problems

Topic: while 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