Lunar Arithmetic (Addition) - MATLAB Cody - MATLAB Central

Problem 44785. Lunar Arithmetic (Addition)

Difficulty:Rate

OEIS link for a description of lunar arithmetic

Simply take the larger digit.

Example 1:

    5
  + 6
  ____
    6

Example 2:

    456
  + 789
  _____
    789

Example 3:

        86
   + 12374
    ______
     12386

Example 4:

       29
     1652
  + 95412
   ________
    95659

Solution Stats

31.68% Correct | 68.32% Incorrect
Last Solution submitted on Feb 13, 2024

Problem Comments

Solution Comments

Show comments
R2025a Pre-release highlights
This topic is for discussing highlights to the current R2025a Pre-release.
14
6

Problem Recent Solvers54

Suggested Problems

More from this Author92

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page