Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void is_in(float x, float y){
- x = x * 10000;
- y = y * 10000;
- int x2 = x;
- int y2 = y;
- if(x2 <= 10000 && y2 <= 10000 && x2 >= 0 && y2 >= 0){
- if(sqrt(pow(x2,2) + pow(y2, 2)) >= 10000){
- printf("true");
- }
- else{
- printf("false");
- }
- }
- else{
- printf("false");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement