{"id":14916,"date":"2021-09-30T11:30:15","date_gmt":"2021-09-30T06:00:15","guid":{"rendered":"https:\/\/python-programs.com\/?p=14916"},"modified":"2021-11-22T18:35:29","modified_gmt":"2021-11-22T13:05:29","slug":"python-program-to-calculate-seed-of-a-number","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-calculate-seed-of-a-number\/","title":{"rendered":"Python Program to Calculate Seed of a Number"},"content":{"rendered":"

Guys who are serious about learning the concepts of the java programming language should practice this list of programs in java<\/a> and get a good grip on it for better results in exams or interviews.<\/p>\n

We’ll learn how to find the seed of a number in Python in this article.<\/p>\n

Seed of a Number:<\/strong><\/p>\n

If a number x is the seed of a number n, then:<\/p>\n

x * the product of x’s digits equals n.<\/p>\n

Given a number, the task is to print all the seeds of the given number.<\/p>\n

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

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

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

Given Number =4977<\/pre>\n

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

79\r\n711<\/pre>\n

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

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

Given Number = 138<\/pre>\n

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

23<\/pre>\n

Program to Calculate Seed of a Number in Python<\/h2>\n

Below are the ways to print the seed of a number in Python<\/p>\n