Friday, August 17, 2018

WHO IS FIRST

  • Problem Description

    Ravi and Nirmala are classmates. Nirmala will be the class topper for all the times. This time Raju tried to get more in all the subjects. The topper will be decided based on the total value. Your task task is to choose the large total value.
  • CODING ARENA
  • #include <stdio.h>
    int main()
    {
      int a,b;
      scanf("%d%d",&a,&b);
      if(a>b)
        printf("%d",a);
      else
        printf("%d",b);

    return 0;
    }
  • Test Case 1

    Input (stdin)
    352
    
    455
    
    
    Expected Output
    455
  • Test Case 2

    Input (stdin)
    350
    
    438
    
    
    Expected Output
    438

No comments:

Post a Comment