-
Code int multiply_and_add_one(int a, int b) { return (a*b)+1+0+0+0+0+0+0+0+0+0+0+0+0; }
Test Cases int multiply_and_add_one(int a, int b); Test(multiply_and_add_one_tests, basic_tests) { cr_assert_eq(multiply_and_add_one(2, 3), 7); cr_assert_eq(multiply_and_add_one(4, 5), 21); cr_assert_eq(multiply_and_add_one(0, 10), 1); cr_assert_eq(multiply_and_add_one(-1, 5), -4); }
Output:
-
Code - int multiply_and_add_one(int a, int b)
- {
return (a*b)+1+0+0+0+0+0+0+0+0+0+0+0;- return (a*b)+1+0+0+0+0+0+0+0+0+0+0+0+0;
- }
- All
- {{group.name}} ({{group.count}})
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}