Muqeet Khan

Muqeet Khan

  • NA
  • 4
  • 720

Write a C# class Factors having function static int CountOddFactors(in

Jul 7 2021 10:05 AM

Write a C# class Factors having function static int CountOddFactors(int n) that would return count of odd factors of parameter n. For instance, odd factors of 20 are: 1 and 5, and odd factors of 30 are 1, 3, 5 and 15. Call this static function in main function that is in another class.