Computer Science, asked by ishan200716, 18 days ago

accept a number and count it's even factors. BlueJ​

Answers

Answered by vaishnavidutt1501232
0

Answer:

class alpha

{

   static void main(int n)

   {

       int c =0 ;

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

       {

       if ( i%n==0)

       c++;

   }

   System.out.println(c);

}

}

Similar questions