Urgent Help for homework - sum and difference

I am not good at programming, my teacher gave me to write a program and i have to finish it in 2 days. Here is the program which i have to write

Quote:

Write a program to determine the sum Z=X+Y and the difference Z=X-Y, where X, Y are n-digit integer decimal numbers and n<=100.

When I asked how to do that he explained me and he helped me little. Here is what he wrote. Ofcourse they are only clues about the way.

Z=X+Y

cost nmax=100

int X[nmax]

for(int i=0; i<nmax; i++)

x[i]= rand()%10;

z[i] = X[i]+ Y[i] + c;

Can anyone help me about that program?

Thanks