Making a simple program for a school assignment and I cant seem to figure it out... its a basic math function using the exponential growth formula which is correct but the computer is not outputting the right numbers, any help would be appreciated!
Code:
#include <stdio.h>
#include <math.h>
int main()
{
int blanketsquares, num1, num2, blanket,remainder;
printf("How many people are knitting blanket squares in the beginning of the week?\n\n");
scanf("%d", &num1);
printf("How many people are knitting blanket squares each day?\n\n");
scanf("%d", &num2);
//forumulas
blanketsquares = pow(num1 + num2,7);
blanket = blanketsquares / 60;
remainder = blanketsquares % 60;
//statement
printf("%d blanketsquares will be made this week!\n\n", &blanketsquares);
printf("You will be able to make %d blankets and start next week with %d squares.\n\n\n\n", blanket, remainder);
return 0;
}