Advertisement
Guest User

Untitled

a guest
Oct 21st, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. // 123.cpp: определяет точку входа для консольного приложения.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <stdio.h>
  6. #include <conio.h>
  7. #include <stdlib.h>
  8. int main(int argc, char *argv[])
  9. {
  10. float x,y,R;
  11. if (argc==4){
  12. x = atof(argv[1]);
  13. y = atof(argv[2]);
  14. R = atof(argv[3]);
  15. //printf("%f %f %f",x,y,R);
  16. if ((y<(x+R) && (y>(x-R)) && (y>(-x-R)) && (y<(-x+R))))
  17. printf("x and y belong to sector");
  18. else
  19. printf("Better try other digits");
  20. }
  21. else
  22. printf ("Enter x, y, R\n");
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement