954,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Drawing ASCII with c sharp how to move one more unit over?

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.

techlawsam
Junior Poster in Training
56 posts since Aug 2011
Reputation Points: 10
Solved Threads: 0
 
Console.WriteLine("CC\t\t    ##   ##");
Momerath
Nearly a Senior Poster
3,384 posts since Aug 2010
Reputation Points: 1,232
Solved Threads: 558
 
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 !

techlawsam
Junior Poster in Training
56 posts since Aug 2011
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: