ប្រតិបត្តិ៖ ការបូកពីរចំនួន
ការបូកពីរចំនួន
Sum of two numbers
//sum of two numbers
#include<iostream>
using namespace std;
int main()
{
int a, b, c;
cout << "Enter two integers to add\n";
cin >> a >> b;
c = a + b;
cout <<"Sum of the numbers: " << c << endl;
return 0;
}
#include<iostream>
using namespace std;
int main()
{
int a, b, c;
cout << "Enter two integers to add\n";
cin >> a >> b;
c = a + b;
cout <<"Sum of the numbers: " << c << endl;
return 0;
}
លទ្ធផល:
Enter two integers to add
8
7
Sum of the numbers:15
Comments
Post a Comment