Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AdnanHussainTurki/12ae583d6e1c4fedb1ac2c264bf3a174 to your computer and use it in GitHub Desktop.
Save AdnanHussainTurki/12ae583d6e1c4fedb1ac2c264bf3a174 to your computer and use it in GitHub Desktop.
/*
* @Author: Adnan
* @Date: 2019-09-16 07:55:34
* @Last Modified by: Adnan
* @Last Modified time: 2019-10-22 13:39:19
*/
#include <iostream>
using namespace std;
/*
Method 3: Using substraction operator
*/
int main() {
cout << "PROGRAM: ADDITION OF TWO NUMBERS";
cout << "\n";
cout << "=========================================================";
int inputOne; //20
cout << "\nEnter the first number:";
cin >> inputOne;
int inputSecond; //10
cout << "\nEnter the second number:";
cin >> inputSecond;
cout << "\nThe sum of the number is ";
cout << inputOne - (-inputSecond);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment