Click here to Skip to main content
15,914,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: __try Pin
Renjith Ramachandran25-May-02 7:21
Renjith Ramachandran25-May-02 7:21 
GeneralRe: __try Pin
Mazdak25-May-02 7:20
Mazdak25-May-02 7:20 
GeneralRe: __try Pin
tiaozi25-May-02 22:36
tiaozi25-May-02 22:36 
GeneralRe: __try Pin
Nish Nishant25-May-02 7:24
sitebuilderNish Nishant25-May-02 7:24 
GeneralRe: __try Pin
Paul M Watt25-May-02 8:29
mentorPaul M Watt25-May-02 8:29 
GeneralRe: __try Pin
Mazdak25-May-02 8:42
Mazdak25-May-02 8:42 
GeneralRe: __try Pin
Alexandru Savescu25-May-02 23:03
Alexandru Savescu25-May-02 23:03 
GeneralHelp Needed Pin
zygo650025-May-02 5:19
zygo650025-May-02 5:19 
Hi,
I have 2 questions here. Need your help . Thanking in advance.

Question1:

Write an application that prints the following diamond shape. You may use output statements that prints a single asterisks ( * ) , a single space or a single newline character . Maximize your use of repetition (with nested For structures)
and minimize the number of output statements . The desired output should be as below :

*
* * *
* * * * *
* * * * * * *
* * * * * * * * *
* * * * * * *
* * * * *
* * *
*


Question2:

Modify the program you wrote in Question 1 to read odd number in the range 1 to 19 to specify the number of rows in the diamond . Your program should then display a diamond of the appropriate size .

regards
Roll eyes | :rolleyes: Roll eyes | :rolleyes:
GeneralRe: Help Needed Pin
Nish Nishant25-May-02 5:39
sitebuilderNish Nishant25-May-02 5:39 
GeneralRe: Help Needed Pin
Ravi Bhavnani25-May-02 5:47
professionalRavi Bhavnani25-May-02 5:47 
GeneralRe: Help Needed Pin
pnpfriend25-May-02 5:55
pnpfriend25-May-02 5:55 
GeneralRe: Help Needed Pin
Renjith Ramachandran25-May-02 6:48
Renjith Ramachandran25-May-02 6:48 
GeneralRe: Help Needed Pin
Mazdak25-May-02 7:04
Mazdak25-May-02 7:04 
GeneralRe: Help Needed Pin
Renjith Ramachandran25-May-02 7:29
Renjith Ramachandran25-May-02 7:29 
GeneralRe: Help Needed Pin
Michael Dunn25-May-02 8:39
sitebuilderMichael Dunn25-May-02 8:39 
GeneralRe: Help Needed Pin
tiaozi25-May-02 22:40
tiaozi25-May-02 22:40 
Generalsilly question Pin
pnpfriend25-May-02 4:58
pnpfriend25-May-02 4:58 
GeneralRe: silly question Pin
Stan Shannon25-May-02 5:22
Stan Shannon25-May-02 5:22 
GeneralRe: silly question Pin
pnpfriend25-May-02 6:23
pnpfriend25-May-02 6:23 
GeneralRe: silly question Pin
Stan Shannon25-May-02 6:36
Stan Shannon25-May-02 6:36 
GeneralRe: silly question Pin
pnpfriend25-May-02 8:56
pnpfriend25-May-02 8:56 
GeneralRe: silly question Pin
PJ Arends25-May-02 9:46
professionalPJ Arends25-May-02 9:46 
GeneralRe: silly question Pin
pnpfriend26-May-02 4:28
pnpfriend26-May-02 4:28 
GeneralRe: silly question Pin
pnpfriend26-May-02 4:29
pnpfriend26-May-02 4:29 
GeneralCreate Edit Control Pin
laphijia25-May-02 4:23
laphijia25-May-02 4:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.