Problem 563. How to add?

  • Imagine you are in 2222 Anno Domini, when everyone must learn how to add,
  • and competing for the highly prestigious post of,
  • Chief Comptroller of Dda Corporation.
  • You are being tested via MATLAB Cody for addition 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 = dda(X,Y).
  • Function Template:
function Z = dda(X,Y)

Solution Stats

42.79% Correct | 57.21% Incorrect
Last solution submitted on Jul 27, 2017

Problem Comments

Solution Comments

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

MATLAB Academy

New to MATLAB?

Learn MATLAB today!