Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Es un rectangulo
//Title of this code //clang 3.6.0 #include <stdio.h> int main(void) { int x1,y1,x2,y2,x3,y3,x4,y4; /* | | P4(3,5) P2(6,5) 5| ............. | . . | . . 2| ............. | P1(3,2) P3(6,2) |____________________ 3 6 */ x1=3; y1=2; x2=6; y2=5; x3=6; y3=2; x4=3; y4=5; // primero comprobar que no coinciden dos de ellos if ((x1==x2 && y1==y2) || (x1==x3 && y1==y3) || (x1==x4 && y1==y4) || (x2==x3 && y2==y3) || (x2==x4 && y2==y4) || (x3==x4 && y3==y4)) { printf("\Al menos hay dos puntos iguales!); return 0; } return 0; }
run
|
edit
|
history
|
help
0
cv8_5
C
Bucles: Media 10 positivos y negativos tecleados
Vectores: Vector inicializado manualmente
Pointer_Indirectare_N
VKI_Mihalyk_3_2
Vectores: Dos vectores rellenos al azar
interestCalculationSample
Bubles: secuencia descenciente de números
Graph Depth First Search