求两个数字之和(c++)

来源:互联网 发布:centos aria2 安装 编辑:程序博客网 时间:2024/05/29 19:32
#include<iostream>
int main()
{
 std::cout <<"Enter two numbers:"<<std::endl;
 int v1=0,v2=0;
 std::cin >> v1 >> v2;
 std::cout << "the sum of " << v1 << " and " << v2 << " is " << v1+v2<<std::endl;
  return 0;
}
0 0