HackerRank C- Solve Me First




Complete the function solveMeFirst to compute the sum of two integers



  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <math.h>
  4. #include <stdlib.h>
  5. int solveMeFirst(int a, int b) {
  6. int sum=a+b;
  7. return sum;
  8. }
  9. int main() {
  10. int num1,num2;
  11. scanf("%d %d",&num1,&num2);
  12. int sum;
  13. sum = solveMeFirst(num1,num2);
  14. printf("%d",sum);
  15. return 0;
  16. }




codesadda.com

Codesadda.com is your home of programming solutions, tutorials, video tutorials and much more. Sign Up for our weekly newsletter to get update about new content.

Like us on Facebook | Connect with us on LinkedIn | Subscribe our Channel on Youtube