Problem Description
Raju and Smirthi are classmates. Smirthi 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.Test Case 1
Input (stdin)400 455
Expected Output455
Test Case 2
Input (stdin)300 438
Expected Output438
Program
#include <stdio.h> int main() { int a,b; scanf("%d%d",&a,&b); if(a>=b) printf("%d",a); else if(b>=a) printf("%d",b); return 0; }
No comments:
Post a Comment
Note: only a member of this blog may post a comment.