Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Problem 553. How to multiply?

Created by AMITAVA BISWAS
  • Imagine you are in 3012 Anno Domini, when everyone must learn how to multiply,
  • and competing for the highly prestigious post of,
  • Chief Comptroller of Ylpitlum Corporation.
  • You are being tested via MATLAB Cody for multiplication of two positive integers X and Y,
  • both are fortunately in decimal system, and only a few dozen digits or less,
  • and delivered as ASCII strings.
  • Please output the result Z in similar style.
  • Please adopt a general strategy, as X and Y may be changed later.
  • Please rename the function Z = ylpitlum(X,Y).
  • Function Template:
function Z = ylpitlum(X,Y)
   %  098765432109876543210987654321098765432109876543210987654321
   X='170000000000000000000000000000';
   Y='190000000000000000000000000000';
   Z='32300000000000000000000000000000000000000000000000000000000';
end

Problem Group

Solution Statistics

30 correct solutions 29 incorrect solutions
Last solution submitted on Jul 12, 2014

Problem Comments

Solution Comments