Create a c program that counts the number of numbers from 1 to m…
Question Answered step-by-step Create a c program that counts the number of numbers from 1 to m… Create a c program that counts the number of numbers from 1 to m that are divisible by n. Use the sample run as guide. Sample run:Program to Count the Number of Numbers from 1 to M That are Divisible by NEnter M (>1): 3Enter N (>1): 4There are no numbers from 1 to 3 that are divisible by 4.Enter M (>1): 4Enter N (>1): 2There are 2 numbers from 1 to 4 that are divisible by 2.Enter M (>1): 4Enter N (>1): 3There is 1 number from 1 to 4 that is divisible by 3.Enter M (>1): -5You have entered an invalid input. Program will now terminate. Engineering & Technology Computer Science COMPUTER 104 Share QuestionEmailCopy link Comments (0)


