Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include "iostream"
  2. #include "math.h"
  3. using namespace std;
  4.  
  5.  
  6.  
  7.  
  8. void main()
  9. {
  10. for(float j=19.75,x=0,y=0;y<=j;x+=0.25,y+=0.25)
  11. {
  12. if(x>=4)
  13. {x-=4;cout<<'\n';}
  14. if(x>=0&&x<=2)
  15. cout<<"\nx="<<y<<";y="<<sqrt(4-(x-2)*(x-2));
  16. else
  17. cout<<"\nx="<<y<<";y="<<-sqrt(4-(x-2)*(x-2));
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement