Hi.
my code isnt running, i think it may have something to do with the first printf and scanf functions. How do i transfer the inputted number to the following statement and have it run properly.
Code:#include <stdio.h> #include <stdlib.h> int main() { int cookies; printf("How many cookies to you have?"); scanf("%d", cookies); printf("I have %d cookie%s",cookies, (cookies!= 1) ? "s" : ""); }