printf requires int value not pointer: printf("You have entered: %i!", num1);
printf
int
printf("You have entered: %i!", num1);