i was solving a problem and the describtion is: Your classmates asked you to copy some paperwork for them. You know that there are 'n' classmates and the paperwork has 'm' pages.
Your task is to calculate how many blank pages do you need. If n < 0 or m < 0 return 0.
so when i write my code like that
int paperwork(int n, int m){
return (n>0,m>0)?m*n:0;
}
it says Should_work_for_negative_n Expected: equal to 0 Actual: -25