-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kelly Manahan #2
base: master
Are you sure you want to change the base?
Conversation
Nice job so far! 👌 |
|
||
{ int counter = 0; | ||
for( int i = 1; i <=n; i++) { | ||
if (i % 15 == 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine, but it would be better if the instructions for the program told what to do if it was divisible by 3 and divisible by 5...that way in the grand scheme of things....it's only looking for numbers that are divisible by 3 and 5...not 3, 5 and 15.
if(i % 3 == 0 && i % 5 == 0){
printf("Fizzbuzz \n");
}
@@ -53,7 +60,7 @@ void string_copy(char *x, char *y) | |||
*/ | |||
int string_compare(char *m, char *n) | |||
{ | |||
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No code here for string_compare
. Other stuff looks good. Try string_compare!
@@ -35,4 +60,4 @@ int main(void) | |||
|
|||
return 0; | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested. works. great job!
arr++; | ||
} | ||
rv[rvlen] ='\0'; | ||
return rv; | ||
} | ||
|
||
#ifndef TESTING |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good. tested.
free(who -> name); | ||
} | ||
free(who); | ||
} | ||
} | ||
|
||
#ifndef TESTING |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested. works! great work!
|
No description provided.