You need first to get rid of the semicolon at the end of for(int i .....) line. if you put semicolons right after for lines, it will loop but it is not going to show any outputs
Secondly, you can't print array's element at one time, you need a loop to go through all elements in your array
Instead of printf("%d", A[num]) use this
for (int i = 0; i<num;i++)
{
printf("%d ", A[i]);
}