daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest Oct 21st, 2013 32 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top