{"id":18574,"date":"2021-08-26T10:38:26","date_gmt":"2021-08-26T05:08:26","guid":{"rendered":"https:\/\/python-programs.com\/?p=18574"},"modified":"2021-11-22T18:37:18","modified_gmt":"2021-11-22T13:07:18","slug":"python-program-to-check-whether-product-of-digits-at-even-places-of-a-number-is-divisible-by-k","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-check-whether-product-of-digits-at-even-places-of-a-number-is-divisible-by-k\/","title":{"rendered":"Python Program to Check Whether Product of Digits at Even places of a Number is Divisible by K"},"content":{"rendered":"

In the previous article, we have discussed Python Program to Check Whether Sum of digits at Odd places of a Number is Divisible by K<\/a>
\nThe task is to check if the product of digits at even places of a given number is divisible by the another given input number say K.<\/p>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given  Number =  693214\r\nGiven  another Number (k) = 2<\/pre>\n

Output:<\/strong><\/p>\n

The Product of digits at even places of the given number{ 693214 } is divisible by the another given number k{ 2 }<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given Number =  2578\r\nGiven another Number (k) = 4<\/pre>\n

Output:<\/strong><\/p>\n

The Product of digits at even places of the given number{ 2578 } is not divisible by the another given number k{ 4 }<\/pre>\n

Program to Check Whether Product of Digits at Even places of a Number is Divisible by K in Python<\/h2>\n

Below are the ways to check if the product of digits at even places of a given number is divisible by the another given input number say K:<\/p>\n