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

1362 Solutions

779 Solvers

Last Solution submitted on Jan 06, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers779

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!