Friday, January 29, 2016

Algorithms - Solve me first

#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;


int solveMeFirst(int a, int b) {
 // Hint: Type return a+b; below
    int sum;
    sum=a+b;
    return (sum);
 
}
int main() {
  int num1, num2;
  int sum;
  cin>>num1>>num2;
  sum = solveMeFirst(num1,num2);
  cout<<sum;
  return 0;
}

No comments:

Post a Comment

Thank you for commenting. Please wait for response :)