Advertisement
MattDovi

Untitled

Oct 26th, 2022
696
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.61 KB | None | 0 0
  1. #include <iostream>
  2. #include <graphics.h>
  3. #include <winbgim.h>
  4.  
  5. using namespace std;
  6.  
  7.  
  8. int main()
  9. {
  10.     int x1 = 600, y1 = 600;
  11.     initwindow(x1,y1);
  12.     int x = 0; int y = 0;
  13.     line(x, y + y1 / 3, x + x1, y + y1 / 3);
  14.     line(x + x1/2, y, x + x1/2, y + y1);
  15.  
  16.     while(x + x1/2 <= x1 and y+y/3 <= y1)
  17.     {
  18.         line(x + x1, y + y1/3, x + x1/2, y + y1);
  19.         x = x + 10;
  20.         y = y + 10;
  21.     }
  22.  
  23.     for(int y = 590; y >= 500; y -= 10)
  24.     {
  25.         int r = 600 - y;
  26.         circle(150, y, r);
  27.     }
  28.  
  29.     outtextxy(140, 100, "ABC");
  30.  
  31.     getch(); closegraph();
  32.     return 0;
  33. }
  34.  
Tags: grafica
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement