fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main(int argc,char*argv[]) {
  4. float x, y,a;
  5. for(y=1.5;y>-1.5;y-=0.1){
  6. for(x=-1.5;x<1.5;x+=0.05){
  7. a=x*x+y*y-1;
  8. putchar(a*a*a - x*x*y*y*y <= 0 ? '$' : ' ');
  9. }
  10. putchar('\n');
  11. }
  12. printf("\n");
  13. printf("生日快乐,天天开心\n");
  14. return 0;
  15. }
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
                                                             
                                                             
                                                             
                $$$$$$$$$           $$$$$$$$$                
            $$$$$$$$$$$$$$$$$   $$$$$$$$$$$$$$$$$            
           $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$          
         $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$         
        $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$        
        $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$        
        $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$        
        $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$        
        $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$        
        $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$        
         $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$         
          $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$          
           $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$          
            $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$            
             $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$             
              $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$              
                $$$$$$$$$$$$$$$$$$$$$$$$$$$$$                
                  $$$$$$$$$$$$$$$$$$$$$$$$$                  
                    $$$$$$$$$$$$$$$$$$$$$                    
                       $$$$$$$$$$$$$$$                       
                          $$$$$$$$$                          
                             $$$                             
                                                             
                                                             
                                                             
                                                             
                                                             

生日快乐,天天开心