please help .
###1. why is the code not working inspite of being simple in logic and implementation
##2. how will i check all the test cases for big numbers, how to find the answer… i mean to even check if the compiler gives correct answer. what should we do in problems like these?
int main() {
// your code here
for(int i=0;i<10;i++)
{
int sum;
int diff;
cin>>sum>>diff;
int k=(sum+diff)/2;
cout<<k<<endl;
cout<<(sum-k)<<endl;
}
return 0;
}
created
last reply
- 2
replies
- 952
views
- 3
users