fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.  
  5. for (float y = 1.5f; y > -1.5f; y -= 0.1f) {
  6.  
  7. for (float x = -1.5f; x < 1.5f; x += 0.05f) {
  8.  
  9. float z = x * x + y * y - 1;
  10.  
  11. float f = z * z * z - x * x * y * y * y;
  12.  
  13. putchar(f <= 0.0f ? ".:-=+*#%@"[(int)(f * -8.0f)] : ' ');
  14.  
  15. }
  16.  
  17. putchar('\n');
  18.  
  19. }
  20.  
  21. }
Success #stdin #stdout 0s 5308KB
stdin
Standard input is empty
stdout
                                                             
                                                             
                                                             
                .........           .........                
            .::-----::::.....   .....::::-----::.            
           :--==----:::...............:::----==--:.          
         .:--==----:::.................:::----==--:.         
        .::-----:::::...................:::::-----::.        
        .:::-::::::.........:::::.........::::::-:::.        
        .::::::......:::::::-----:::::::......::::::.        
        ...........::::----=======----::::...........        
        ..........:::--===+++++++++===--:::..........        
        .........:::--==++****#****++==--:::.........        
         ........::--=++**###%%%###**++=--::........         
          ......::--==+**##%%%%%%%##**+==--::......          
           .....::--=++*##%%%%@%%%%##*++=--::......          
            .....::-==+**##%%%%%%%##**+==-::.....            
             ....::--=++**###%%%###**++=--::....             
              ....::--==++****#****++==--::....              
                ...:::--==+++++++++==--:::...                
                  ...:::---=======---:::...                  
                    ....:::::---:::::....                    
                       ......:::......                       
                          .........                          
                             ...