Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. help here... square program

help here... square program

Scheduled Pinned Locked Moved C#
tutorialhelp
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Missy Glory
    wrote on last edited by
    #1

    hi everyi, i don know how to explain this with words...but below is the result that i wan to get. for example: display = 4 rows and coloums display in # Result: #### #### #### #### hope u understand..

    M L G 3 Replies Last reply
    0
    • M Missy Glory

      hi everyi, i don know how to explain this with words...but below is the result that i wan to get. for example: display = 4 rows and coloums display in # Result: #### #### #### #### hope u understand..

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      This is like a school project.

      for(int i = 0; i < 4; i++)
      {
      for(int j = 0; j < 4; j++)
      {
      Console.Write("#");
      }
      Console.WriteLine();
      }

      1 Reply Last reply
      0
      • M Missy Glory

        hi everyi, i don know how to explain this with words...but below is the result that i wan to get. for example: display = 4 rows and coloums display in # Result: #### #### #### #### hope u understand..

        M Offline
        M Offline
        Michael101
        wrote on last edited by
        #3

        This is in C# yeah? Is this a console app? Don't completely understand what you want, the first thing that comes to mind is to create an array, fill it up with #'s (or you can code it so they enter in the output) and iterate that array on the page. Hope this gives you some idea to the desired solution!

        1 Reply Last reply
        0
        • M Missy Glory

          hi everyi, i don know how to explain this with words...but below is the result that i wan to get. for example: display = 4 rows and coloums display in # Result: #### #### #### #### hope u understand..

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          Well, the most straightforward solution would be: Console.Write("####\r\n####\r\n####\r\n####\r\n"); However, that is probably not the solution that you need to complete the assignment. Why don't you just paste the assignment and explain what you are having problems with?

          --- single minded; short sighted; long gone;

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups