Help me in solving USRR2 problem

My issue

My code

#include <stdio.h>

 int main() {
     int a,b;
     int sum;
     int diff;
     scanf("%d %d", &a, &b);
     sum = a + b;
     diff = a - b;
     printf("sum is : %d \n", sum);
     printf("Difference is : %d", diff );
     return 0;

Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone

Two mistakes the s of sum should be in uppercase in printf and no space between is and :
Rest is correct.

1 Like