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