Find Your Solution Here

Hacker Rank

Hackerrank Solution Solve Me First in c++

Problem Link–https://www.hackerrank.com/challenges/solve-me-first/problem

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:
  
}

int main() {
  int num1, num2;
  int sum;
  cin>>num1>>num2;
  sum = solveMeFirst(num1,num2);
  cout<<sum;
  return 0;
}

Leave a Reply