This is what the code should look like when posted - just paste as text and the forum software will take care of all the details. I also threw in some indentation as a freebie.
int main(void)...
Type: Posts; User: Matticus
This is what the code should look like when posted - just paste as text and the forum software will take care of all the details. I also threw in some indentation as a freebie.
int main(void)...
It looks like you posted before seeing my response. However, this quote of mine is the key to your problem:
http://www.cprogramming.com/tutorial/printf-format-strings.html
Read the...
No errors, but I got plenty of warnings when I compiled your code.
main.c||In function 'main':|
main.c|8|warning: incompatible implicit declaration of built-in function 'printf'|...
You have to show your attempt - these forums have a homework policy, and nobody is going to do the work for you.
It appears that you want to receive a certain amount of coins, and determine how...
Were the answers you received on another forum satisfactory?
FYI it's considered rude to cross-post questions like you did - some people here might take their own time to help you, only to be...