Write a Matlab program in a script file that finds and displays all the numbers between 700 and 2999, whose product of digits is 6 times the sum of the digits (e.g. 2864 since 2*8*6*4 = 6(2+8+6+4)). You may use a loop in the script. For extra credit, print out also the number of times that the product and sum were the same! (5 pts)

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter13: File Input And Output
Section: Chapter Questions
Problem 6PE
icon
Related questions
Question
100%
Write a Matlab program in a script file that finds and displays all the numbers between 700 and 2999, whose product of
digits is 6 times the sum of the digits (e.g. 2864 since 2*8*6*4 = 6(2+8+6+4)). You may use a loop in the script. For
extra credit, print out also the number of times that the product and sum were the same! (5 pts)
Transcribed Image Text:Write a Matlab program in a script file that finds and displays all the numbers between 700 and 2999, whose product of digits is 6 times the sum of the digits (e.g. 2864 since 2*8*6*4 = 6(2+8+6+4)). You may use a loop in the script. For extra credit, print out also the number of times that the product and sum were the same! (5 pts)
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Public key encryption
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning