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