Skip to content

Commit

Permalink
Merge pull request tarunsinghofficial#1798 from rajtirole/main
Browse files Browse the repository at this point in the history
addtion_rajtirole.cpp
  • Loading branch information
tarunsinghofficial committed Oct 20, 2021
2 parents 5f253b1 + c1a367f commit 59e8dbe
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Addition.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// C++ program to add two number
// using addition operator
#include <iostream>
using namespace std;
// Function to return sum
// of two number
int addTwoNumber(int A, int B)
{
// Return sum of A and B
return A + B;
}

// Driver Code
int main()
{
// Given two number
int A = 4, B = 11;

// Function call
cout << "sum = " << addTwoNumber(A, B);
return 0;
}

0 comments on commit 59e8dbe

Please sign in to comment.