Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Condiciones: Puntos cuadrantes
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
//Title of this code //clang 3.6.0 #include <stdio.h> int main(void) { // El punto viene definido por las variables x e y int x, y; printf("\nIntroduce x: "); scanf(" %d", &x); printf("\nIntroduce y: "); scanf(" %d", &y); if (x<0 || y<0) printf("\nSolo del primer cuadrante!!"); else if ((x>=2 && x<=3 && y>=2 && y<=4) || (x>=3 && x<=4 && y>=2 && y<=5)) { printf("\nP(%d,%d) pertenece a la región A", x, y); printf("\nQué bien!!"); } else if (x>=5 && x <= 7 && y >= 5 && y <= 8) printf("\nP(%d,%d) pertenece a la región B", x, y); else printf("\nNo pertenece ni a A ni a B"); printf("\nAdios"); return 0; }
clang
Show compiler warnings
[
+
] Compiler args
[
+
]
Show input
fork mode
|
history
|
discussion