Menu
Coddy logo textTech

Sum

Lesson 2 of 32 in Coddy's Coding Problems course.

Write a program that will return the sum of two numbers.

challenge icon

Challenge

Easy

Given two natural numbers A and B as function parameters. Return their sum.

The function name should be sum.

 

Input
2 3

Output
5

Input
100 50

Output
150

Try it yourself

int sum(int a1, int a2) {
    // Write code here
}

All lessons in Coding Problems