Marks :100
: 1 | : 1
You are given four integers a,b,c and d. Find the sum of the negative number out of these four numbers and print the same.
the first line of the test case contains 4 integers separated by spaces a,b,c and d. ($$$-10^3 \le a,b,c,d \le 10^3$$$)
Print the sum of negative number out of these four numbers
2 -3 -14 7
-17
12 43 1 0
0
Print 0 if no negative number is present
You need to login to view your submissions.
You need to login to view all submissions.
Result : Executed
Feel something is wrong with the test cases?
Result : Accepted
Test Cases :
But to Run or Submit the Problem, you need to Log In.
Continue to Log InYour challenge has been submitted successfully.
You will get a response soon via WhatsApp or Email.
Do let us know your issue.