Sum of Two Numbers - MATLAB Cody - MATLAB Central

Problem 44392. Sum of Two Numbers

Difficulty:Rate

Given two integer numbers x and y, calculate their sum and put it in z.

Examples:

Inputs x = 2, y = 4
Output z is 6
Inputs x = 1, y = -4
Output z is -3

Solution Stats

65.29% Correct | 34.71% Incorrect
Last Solution submitted on Mar 27, 2025

Problem Comments

Solution Comments

Show comments
Registration Now Open for MathWorks AUTOMOTIVE CONFERENCE 2025
...
Hello Community, We're excited to announce that registration is now open for the...

Problem Recent Solvers752

Suggested Problems

More from this Author25

Community Treasure Hunt

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

Start Hunting!
Go to top of page