I have this finished and it works perfect. I was wondering if there is a better way of writeing the code.
Thank You
WackoWolf
Code:
#include "stdafx.h"
#using <mscorlib.dll>
using namespace System;
int _tmain()
{
/*counter variables*/
int i;
int j;
/*variable for decrement value*/
int x=5;
/*1st loop for values 0-5*/
for (i=0; i<=5; i++)
{
for (j=0; j<=i; j++)
{
printf("%d", j);
}
printf("\n");
}
/*2nd loop for decrementing values 4-0*/
for (i=0; i<=5; i++)
{
for (j=0; j<x;j++)
{
printf("%d", j);
}
x=x--;
printf("\n");
}
return 0;
}