This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int multiply(int); | |
int main(void) | |
{ | |
// Try using a debugger to figure out what is going wrong | |
for(int i = 900; i < 905; i++) | |
{ | |
int mynumber = multiply(i); | |
if (mynumber > 0) | |
printf("You won %d bonus points!\n", mynumber); | |
else | |
printf("Something went wrong! Try again later!\n"); | |
} | |
} | |
int multiply(int num) | |
{ | |
int result = num * 2376000; | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment