Last active
August 29, 2015 14:13
-
-
Save kbarre123/0087d0cd7de3e5fb99a0 to your computer and use it in GitHub Desktop.
Hacker Rank C++ template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cmath> | |
#include <cstdio> | |
#include <vector> | |
#include <iostream> | |
#include <algorithm> | |
using namespace std; | |
int myFunction(int a, int b) { | |
return a+b; | |
} | |
int main() { | |
int num1, num2; | |
int sum; | |
int t; | |
cin>>t; | |
for (int i=0;i<t;i++) { | |
cin>>num1>>num2; | |
sum = myFunction(num1,num2); | |
cout<<sum<<endl; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment