Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 123.cpp: определяет точку входа для консольного приложения.
- //
- #include "stdafx.h"
- #include <stdio.h>
- #include <conio.h>
- #include <stdlib.h>
- int main(int argc, char *argv[])
- {
- float x,y,R;
- if (argc==4){
- x = atof(argv[1]);
- y = atof(argv[2]);
- R = atof(argv[3]);
- //printf("%f %f %f",x,y,R);
- if ((y<(x+R) && (y>(x-R)) && (y>(-x-R)) && (y<(-x+R))))
- printf("x and y belong to sector");
- else
- printf("Better try other digits");
- }
- else
- printf ("Enter x, y, R\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement