Previous Next
0 / 18
Module DEMO-32-90DEMO-C-32

Adder

DEMO-C-32 โ€ข Programming in C

Browser-only practice

Problem Statement

Write a function int add(int a, int b) that returns the sum of two integers.

Constraints

-1000

Input Format

Two space-separated integers.

Output Format

The sum as an integer.

Sample Testcases

Submit runs every public testcase in this browser. Results and code never leave this device.

Sample #1
Public sample
5 7
12
5 + 7 = 12.
Sample #2
Public sample
-5 5
0
-5 + 5 = 0.
Sample #3
Public sample
0 0
0
0 + 0 = 0.

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
Editor settings