Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Numero de veces digito
BST
Spring 2017 Project 2 v1.2
19_1
1, 2, 3, & 4-layer neural networks in C
Fgets and String Stuff
Null deref
Welcome1
base
main.c
Please log in to post a comment.