Re: c++ 练习源码,sum
发表于 : 2024-11-08 12:24
代码: 全选
#include <iostream>
int main(){
int int_n1;
int int_n2;
int sum;
std::cout<<"Enter first interger \n";
std::cin >>int_n1;
std::cout<<"Enter second interger \n";
std::cin >>int_n2;
sum=int_n1+int_n2;
std::cout<<"sum is "<<sum<<std::endl;
return 0;
}