🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #917

Quick Help

#917
From: Batesy
Date: Wed, 15 Mar 2000 00:00
32 lines
1285 bytes
Hi all,
Im nort sure if this is hte correct group to post to, but I have a small
problem with a bit of code. My tutor wants us to do the following:

You may use output statements that
print a single asterisk (*), a single space or a single newline character.
Maximise your use of repetition (with nested loops) and minimise the
number
of output statements.

The program should ask the user to enter an odd number in the range 1 to
21
to specify the number of rows in the diamond. 
        *
       ***
      *****
     *******
    *********
     *******
      *****
       ***
        *



Now this really has me stumped. Can someone please explain it to
me please?
If you would like to email any suggestions emailme at:
batesy@batesy.iinet.net.au

Cheers
Jonathon Bates
Technical Details
Message-ID: <38cf74f3$0$1930@motown.iinet.net.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d6db,828334780a285ee,start
X-Google-Attributes: gid10d6db,public
From: Batesy  <batesy@metallica.com>
Subject: Quick Help
Date: 2000/03/15
Message-ID: <38cf74f3$0$1930@motown.iinet.net.au>
X-Deja-AN: 597755737
Sender: Jonathon  <batesy@opera.iinet.net.au>
X-Trace: news.iinet.net.au 953119987 1930 iotpai@203.59.24.144
User-Agent: tin/pre-1.4-971215 (UNIX) (Linux/2.0.36 (i686))
Newsgroups: aus.computers.java