codezilla
codezilla copied to clipboard
Fix BubbleSort.c and factorial.c
Description
Sorting/Bubble Sort/C/BubbleSort.c (issue #396)
removed the scanf("%d",&n);
line
Maths/Factorial/C/factorial.c (issue #397)
declared variable n
before using it.
called the function factorial
Related Issue
Fixing issue #396 and #397
Types of changes
What types of changes does your code introduce? Put an x
in all the boxes that apply:
-
[x] Bug fix (change which fixes an issue with the algorithm)
-
[ ] New Algorithm (non-breaking change which adds functionality)
-
[ ] Documentation
Checklist:
Go over all the following points, and put an x
in all the boxes that apply.
If you're unsure about any of these, don't hesitate to ask. We're here to help!
-
[x] My code follows the code style of this project.
-
[ ] My change requires a change to the documentation.
-
[ ] I have updated the documentation accordingly.
-
[x] I have read the CONTRIBUTING document.