fork download
  1. #include <stdio.h>
  2. int main()
  3. {
  4. float x,y;
  5. for(y = 1.5f; y>-1.5f; y-=0.1f)
  6. {
  7. for(x = -1.5f; x<1.5f; x+=0.05f)
  8. {
  9. float a=x*x+y*y-1;
  10. if((a*a*a-x*x*y*y*y)<=0.0f)
  11. {
  12. printf("*");
  13.  
  14. }
  15. else
  16. {
  17. printf(" ");
  18. }
  19. }
  20. printf("\n");
  21. }
  22. return 0;
  23. }
  24.  
  25.  
  26.  
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
                                                             
                                                             
                                                             
                *********           *********                
            *****************   *****************            
           ****************************************          
         *******************************************         
        *********************************************        
        *********************************************        
        *********************************************        
        *********************************************        
        *********************************************        
        *********************************************        
         *******************************************         
          *****************************************          
           ****************************************          
            *************************************            
             ***********************************             
              *********************************              
                *****************************                
                  *************************                  
                    *********************                    
                       ***************                       
                          *********                          
                             ***