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

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.

He showed me how does it has to start but i need to complate it. an someone help me to finish my program, here is the what he wrote;

Code:

n= 100
int x(100), Y(100), Z(101)
for (i=0, i<n,i++)
z[i]=x[i]+y[i]+c;
if (z[i]>9)
{c=1; z[i]=z[i]%10}

who can create a C++ program from this content. and plus i need to write it for z=x-y too