Thursday, February 4, 2016

Solve Me First - Hacker Rank Solution

Let's start simple. Can you complete the function solveMeFirst to return the sum of two integers passed as input parameters? You can pick your favorite programming language.


------------------------------------------------------------------------------------------------------------

  Solve Me First - Hacker Rank Solution


#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>


int solveMeFirst(int a, int b) {
  return a+b;
}
int main() {
  int num1,num2;
  scanf("%d %d",&num1,&num2);
  int sum;
  sum = solveMeFirst(num1,num2);
  printf("%d",sum);
  return 0;
}
-----------------------------------------------------------------------------------------------------------

 Solve Me First - Hacker Rank Solution

Powered by Blogger.