Open psurabh opened 6 months ago
[!TIP] I can email you next time I complete a pull request if you set up your email
The sandbox appears to be unavailable or down.
I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.
add_numbers.c
✓ https://github.com/psurabh/build_tools/commit/45702e33ee750dde9fc3c2f8b7d0337f63dbe8dd Edit
Create add_numbers.c with contents:
• Start by including the necessary libraries. In this case, we will need stdio.h for input and output functions.
• Define a function, add_numbers, that takes two integers as parameters and returns their sum. This function will be used to add two numbers.
• Define another function, test_add_numbers, that will be used to test the add_numbers function. This function will not take any parameters and will not return any value.
• In the test_add_numbers function, call the add_numbers function with various test cases and check if the returned value is as expected. Use the printf function to print the test results.
• In the main function, call the test_add_numbers function to run the tests.
add_numbers.c
✓ Edit
Check add_numbers.c with contents:
Ran GitHub Actions for 45702e33ee750dde9fc3c2f8b7d0337f63dbe8dd:
I have finished reviewing the code for completeness. I did not find errors for sweep/write_a_c_program_which_can_add_two_numb
.
💡 To recreate the pull request edit the issue title or description.Something wrong? [Let us know].
This is an automated message generated by Mi6
Checklist
- [X] Create `add_numbers.c` ✓ https://github.com/psurabh/build_tools/commit/45702e33ee750dde9fc3c2f8b7d0337f63dbe8dd [Edit](https://github.com/psurabh/build_tools/edit/sweep/write_a_c_program_which_can_add_two_numb/add_numbers.c) - [X] Running GitHub Actions for `add_numbers.c` ✓ [Edit](https://github.com/psurabh/build_tools/edit/sweep/write_a_c_program_which_can_add_two_numb/add_numbers.c)