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.27% Correct | 34.73% Incorrect
Last Solution submitted on Mar 08, 2025

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers751

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