I'm in an introductory code class for C and I'm trying to run this square and cube calculation if a number greater than 1 is entered, but it stalls if I run it. I'm not getting any errors and I've tried different ways to make this work through tips here, but nothing is happening and I don't know enough to get what's wrong.
#include <stdio.h>
int main ()
{
    int num, square, cube;
    
    printf("What is your number? ");
    scanf("%d", num);
    
    if (num > 1)
    {
        square = num * num;
        cube = num * num * num;
        
        printf("\nThe square of your number is ");
        printf("%d", &square);
        printf(" and the cube of your number is ");
        printf("%d", cube);
        printf(".");
    }
    
    printf("\nPlease enter a number greater than 1.");
    
    return 0;
}
 
     
     
     
    
 
    