om in c-program

  1. #include<stdio.h>
  2. #include<conio.h>
  3. #include<math.h>
  4. void main()
  5. {
  6. int x,y,n;
  7. printf("Enter n");
  8. scanf("%d",&n);
  9. for(y=2*n;y>=-3*n;y--)
  10. {
  11. for(x=-2*n;x<=3*n;x++){
  12. if((3.6*pow(x-y+n,2)+pow(x+y,2)<=pow(2*n,2))&&(81*pow(x-y+n,2)+64*pow(x+y,2)>=pow(9*n,2))&&(x+y>0)||((0.9*pow(2*x+2*y+3*n,2)+pow(x-y,2)<=pow(3*n,2))&&(9*pow(2*x+2*y+3*n,2)+24*pow(x-y,2)>=pow(9*n,2))&&(x-y>0))||(0.75*x>0.73*y&&0.64*x<0.7*y&&x<0.73*n||pow(x-1.1*n,2)+pow(y-1.7*n,2)<=0.025*n*n)||(pow(x-1.5*n,2)+pow(y,2)<=1.2*n*n&&pow(x-1.31*n,2)+pow(y,2)>=0.8*n*n&&(0.64*x<0.7*y||y<0||x>0.7*n)||(pow(x-1.2*n,2)+pow(y-1.8*n,2)<=0.3*n*n&&pow(x-n,2)+pow(y-2*n,2)>=0.3*n*n&& x+y<3.3*n))){
  13. printf("*");
  14. }
  15. else{
  16. printf(" ");
  17. }
  18. }
  19. printf("\n");
  20. }
  21. getch();
  22. }

Comments

Popular posts from this blog

Trading Live Advance Chart Source code HTML CSS & JS

How to show live Cryptocurrency Price In your website Using HTML CSS, AND JavaScript

Learn Python 2024 by gaurav tripathi