Ok, so this is what i have...

When i build it I just get a vertical line of 1's. There are no variables the task is straight forward. We have to make a program the when executed displays the first 10 rows. I'm not good at this and im also not looking for someone to write the program for me I just need advice as I can't find the problem. I think I can do the formatting the output by myself but I'd like to get it to output the right stuff first.

Thanks in advance

Code:

#include <iostream>
#include <iomanip>
using namespace std;
void main ()
{
// Define variables
int n; // "n things"
int k; // "k times"
int K; // Used to help calculate factorial
int N; // Used to help calculate factorial
int a; // "n - k" renamed
int A; // Used to help calculate factorial
int number; // Final output number
// For Loops to calculate factorials
for (n = 0; n <= 10; n+= 1)
{
for (k = 0; k <= n; k += 1)
{
if (n = 0 || 1)
N = 1;
else
{
N = n;
for (n = n; n > 1; n--)
N = N * (n-1);
}
if (k = 0 || 1)
K = 1;
else
{
K = k;
for (k = k; k > 1; k = k - 1)
K = K * (k-1);
}
a = n - k;
if (a = 0 || 1)
A = 1;
else
{
A = a;
for (a = a; a > 1; a = a - 1)
A = A * (a-1);
}
number = N / (K * A);
cout << number << endl;}
// Output
}}