Sum Of Two Digits in C++
Q. Write a C++ program for Sum of Two Digits.
#include <iostream>
using namespace std;
int main()
{
int a,b,c;
cout << "Enter the numbers:";
cin >> a >> b;
c=a+b;
cout << "Sum Of Two Digits is:" << c << endl;
return 0;
}
Q. Write an algorithm to Sum of Two Digits.
1. Start 2. Input two integers, `a` and `b`. 3. Calculate the sum `c` of `a` and `b`. 4. Output the result `c`. 5. End
Quickly Find What You Are Looking For
OnlineTpoint is a website that is meant to offer basic knowledge, practice and learning materials. Though all the examples have been tested and verified, we cannot ensure the correctness or completeness of all the information on our website. All contents published on this website are subject to copyright and are owned by OnlineTpoint. By using this website, you agree that you have read and understood our Terms of Use, Cookie Policy and Privacy Policy.
point.com