0

Ok so here is the problem... this is my code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DesignOutput
{
    class Assignment 
    {
        static void Main()
        {
            Console.WriteLine("CCCCCCCCCC");
            Console.WriteLine("CC\t\t##\t##");
            Console.WriteLine("CC\t\t##############");
            Console.WriteLine("CC\t\t##\t##");
            Console.WriteLine("CC\t\t##############");
            Console.WriteLine("CC\t\t##\t##");
            Console.WriteLine("CCCCCCCCCC");
            Console.ReadKey();
        }
    }
}

Im trying to match this:

CCCCCCCCCCC
CC                    ##   ##           
CC                ##############               
CC                    ##   ##
CC                ##############
CC                    ##   ##
CCCCCCCCCC

the " ##" in lines 2,4,6 (first set) need to be pushed basically one more unit to the right in order for everything to align up, but I dont know if that cant be done I tried experimenting with

\t

but its not working

This is what I am getting:

[IMG]http://i.imgur.com/zGqFv.png[/IMG]

Thanks Again for all the help.

Edited by techlawsam: n/a

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by techlawsam
0
Console.WriteLine("CC\t\t    ##   ##");

Woah, thanks a bunch but its weird cause when I put space it showed no change to the output, when I ran the program so I thought spaces weren't recognized. Guess thats where the experience comes in !

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.