Thread: Asterisk

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2013
    Posts
    3
    Rep Power
    0

    Asterisk


    Hello :) ! I'm really not good at programming and having a hard time accomplishing my task.

    How to make a diamond asterisk?
    all i can make is a triangle or half diamond asterisk.
    Pls help :(
  2. #2
  3. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,995
    Rep Power
    481

    graph absolute value function, roughly.


    Do you mean like this? Make a list of integers from negative to positive n. From this make a table of value = abs(value). Index into a string of the back- and fore- ground characters, display that table then display it again in reverse order.
    Code:
       (,|.)' !'{~(=/|)i:20
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                        !                    
                       ! !                   
                      !   !                  
                     !     !                 
                    !       !                
                   !         !               
                  !           !              
                 !             !             
                !               !            
               !                 !           
              !                   !          
             !                     !         
            !                       !        
           !                         !       
          !                           !      
         !                             !     
        !                               !    
       !                                 !   
      !                                   !  
     !                                     ! 
    !                                       !
    !                                       !
     !                                     ! 
      !                                   !  
       !                                 !   
        !                               !    
         !                             !     
          !                           !      
           !                         !       
            !                       !        
             !                     !         
              !                   !          
               !                 !           
                !               !            
                 !             !             
                  !           !              
                   !         !               
                    !       !                
                     !     !                 
                      !   !                  
                       ! !                   
                        !
    www.jsoftware.com
    [code]Code tags[/code] are essential for python code and Makefiles!
  4. #3
  5. Contributing User

    Join Date
    Aug 2003
    Location
    UK
    Posts
    5,117
    Rep Power
    1803
    Originally Posted by Kayle07
    all i can make is a triangle or half diamond asterisk.
    Good start - same again in reverse perhaps?

    Show us what you have so far so that we can help you implement your solution, rather than just giving you a solution.

IMN logo majestic logo threadwatch logo seochat tools logo