Computer Science, asked by sanjuktabiswasbiswas, 9 months ago

Accept a number and count how many factors
are there​

Answers

Answered by daniel05
1

Answer:

class abc

{

public static void main (String args [. ])

{

int c=0,i,a;

Scanner in=new Scanner (System. in);

System.out.println(Enter the number);

a=in.nextInt();

for(i=1;i<=a;i++)

{

if(a%i==0)

{

c++

}

}

System.out.println(+c);

}

}

HOPE IT DOESN'T HELP YOU

Similar questions