You’re tasked with pairing up people with each other but you need to figure out how well both of them work together. In order to find out how effective each pair is, you need to create a program that adds both of their values and returns their sum.
Input
-1000<= x <= -1000
-1000<= y <= -1000
Two int inputs separated by a space
100·100
#include <stdio.h>
int main()
{
int value1, value2, sum;
scanf("%d %d", &value1, &value2);
sum = value1 + value2;
printf("%d\n", sum);
return 0;
}
Comments
Leave a comment