Saturday, August 18, 2018

FUN


  • Problem Description

    Add two numbers using user-defined function addNumbers() .
  • CODING ARENA
  • #include <stdio.h>
    int main()
    {
      int a,b,c;
      scanf("%d%d",&a,&b);
      c=a+b;
      printf("%d",c);
      return 0;
    }
        
  • Test Case 1

    Input (stdin)
    2
    
    3
    
    
    Expected Output
    5
  • Test Case 2

    Input (stdin)
    23
    
    32
    
    
    Expected Output
    55

No comments:

Post a Comment