Return Question Bank
Test Question ID #10006Basic OperationsC++Programming Question30min

Sum of Two Numbers in C++

Problem Description

Write a C++ program that reads two integers, a and b, and outputs their sum.

Input Format

一行,包含两个整数 a 和 b(1 ≤ a, b ≤ 1000),用空格分隔。

Output format

一行,包含一个整数,表示 a + b 的结果。

Sample Input

3 5

Sample output

8
Student account required to answer questions.

Please contact your instructor to register an account before starting the quiz.

Yu ICP Bei 2026040576 No. -1