Sunday, 2 April 2017

Hacker Rank Solution For " Solve Me First " in C++

Problem :- Solve Me First 

Submit Your Solution Here :- Click Here

Copy The Color Code and paste it into hackerrank Editor .

Solution :-

#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:
   return a+b;
}
int main() {
  int num1, num2;
  int sum;
  cin>>num1>>num2;
  sum = solveMeFirst(num1,num2);
  cout<<sum;
  return 0;
}



Output :-

Hacker Rank Solution For " Solve Me First " in C++

No comments:
Write comments

Recommended Posts × +