Solve Me First || HackerRank

Problem name: Solve Me First

Judge: HackerRank

Problem link: Solve Me First

Solution on GitHub: Solve Me First

 

[At first you should try to solve the problem on your own. This will increase your thinking power and the ability to solve the program will increase. And if you copy directly from here, you will not learn anything. So my advice is to try to solve it yourself first. If not then check this code. Once you understand the code, do it yourself. Don't copy from here.
Best of luck]


HackerRank Solve Me First Solution in C++/Cpp

#include 

using namespace std;

int solveMeFirst(int a, int b)
{
    return a + b; 
}

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

 

 




 

Next Post Previous Post
No Comment
Add Comment
comment url