From 3da95f78028cf9b73f7efd8527ee9433590a453d Mon Sep 17 00:00:00 2001 From: Shashank Srivastava <44526306+shashankcoc@users.noreply.github.com> Date: Thu, 3 Oct 2019 22:10:44 +0530 Subject: [PATCH] Create codechef_DIFFSUM.c Codechef DIFFSUM PROBLEM SOLUTION --- codechef_DIFFSUM.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 codechef_DIFFSUM.c diff --git a/codechef_DIFFSUM.c b/codechef_DIFFSUM.c new file mode 100644 index 0000000..ff2d5f1 --- /dev/null +++ b/codechef_DIFFSUM.c @@ -0,0 +1,11 @@ +#include +int main() +{ +int N1,N2; +scanf("%d\n%d",&N1,&N2); +if(N1>N2) +printf("%d",N1-N2); +else +printf("%d",N1+N2); +return 0; +}