1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

c++ loop

Discussion in 'Programming' started by dracula51, Mar 17, 2012.

  1. #1
    Hi

    using these variable

    char ch = "*";
    int max = 10;
    int total = 150;

    i want this result:
    *
     **
      ***
       ****
        *****
         ******
          *******
           ********
            *********
             ********** (maximum 10 ch, then it start to decrese)
             **********
            *********
           ********
          *******
         ******
        *****
       ****
      ***
     **
    *
    *
     **
      ***
       ****
        *****
         ******
          *******
           ********
            **** (total 150 ch)
    Code (markup):
    can anyone help with the codes plzzzzzzz
     
    dracula51, Mar 17, 2012 IP