Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
ARREGLO DE VARIABLES DE TIPO STRUCT
#include <stdio.h> #define MAX 10 typedef struct { int x; int y; }punto; int main(void) { punto vectorPuntos[MAX]; int n; int i; scanf("%d", &n); for (i = 0 ; i < n ; i++) scanf("%d%d", &vectorPuntos[i].x, &vectorPuntos[i].y); for (i = 0 ; i < n ; i++) printf("(%d, %d)\n", vectorPuntos[i].x, vectorPuntos[i].y); return 0; }
run
|
edit
|
history
|
help
0
02468
11
Timestamp microsecond for C
Collatz(3k+1)
th
B_141202_funcionesString
140114_CribaErasthotenes
A_141212_OrdenarArray
16-bit signed or unsigned int -> ASCII
lab 12 v1