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 ? "71110116"[(int)(f * -8.0f)] : ' ');
  14.  
  15. }
  16.  
  17. putchar('\n');
  18.  
  19. }
  20.  
  21. }
  22.  
  23.  
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
                                                             
                                                             
                                                             
                777777777           777777777                
            71111111111177777   77777111111111117            
           1111111111117777777777777771111111111117          
         7111111111111777777777777777771111111111117         
        711111111111177777777777777777771111111111117        
        711111111117777777771111177777777711111111117        
        711111177777711111111111111111117777771111117        
        777777777771111111111111111111111177777777777        
        777777777711111111000000000111111117777777777        
        777777777111111100111111111001111111777777777        
         7777777711111001111166611111001111177777777         
          77777711111101111666666611110111111777777          
           777771111100111666666661110011111777777          
            7777711111011116666666111101111177777            
             77771111100111116661111100111117777             
              777711111100111111111001111117777              
                77711111110000000001111111777                
                  7771111111111111111111777                  
                    777711111111111117777                    
                       777777111777777                       
                          777777777                          
                             777