#5392. C++ scanf练习7

C++ scanf练习7

循环输入 3 个数求和

题目描述

循环 3 次,每次用 scanf 读入一个整数,把这 3 个数加起来,最后输出总和。练习 scanf 搭配 for 循环。

输入样例

1 2 3

输出样例

6

参考代码

#include <cstdio>
int main()
{
    
    return 0;
}