Skip to content

Instantly share code, notes, and snippets.

@rogerioagjr
Created May 17, 2015 12:42
Show Gist options
  • Save rogerioagjr/21ad98fdd1f3b5ea8314 to your computer and use it in GitHub Desktop.
Save rogerioagjr/21ad98fdd1f3b5ea8314 to your computer and use it in GitHub Desktop.
Tira-teima
#include <cstdio>
int main(){
// declato e leio os valores de x e y
int x,y;
scanf("%d %d", &x, &y);
// verifico se eles estão nos limites das coordenadas da quadra de tênis
// se estiverem, imprimo "dentro"
if(x >= 0 && x <= 432 && y >= 0 && y <= 468) printf("dentro\n");
// se não, imprimo "fora"
else printf("fora\n");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment