ប្រតិបត្តិ៖ ការបូកពីរចំនួន
ការបូកពីរចំនួន 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; } លទ្ធផល: Enter two integers to add 8 7 Sum of the numbers:15
Submitted
ReplyDeleteExercise 1
ReplyDeleteInsert the missing part of the code below to display "Hello World!":
cout<<"Hello world!";
return 0;
}
Exercise 2
By using a special character, insert a new line after "Hello World":
cout << "Hello World! \n";
cout << "I am learning C++";
return 0;
}
Exercise 3 Insert the missing parts, Comments in C++ are written with special characters. Insert the missing parts:
/ This is a single-l i ne comment
/This is a muti-l i ne comment *
Ex3: It should be /*This is a single-l i ne comment
Delete*This is a muti-l i ne comment*/
Thanks!!!