Posts by Lucas De Oliveira • 1 point
2 posts
-
0
votes3
answers1158
viewsA: Even-odd vector fill C
I managed to solve this one the right code: #include <stdio.h> int par[5], j, impar[5], i, P = 0, I = 0, x; void main(void) { for (i = 0; i < 15; i++) { scanf("%d", &x); if (x % 2 == 0)…
-
-2
votes3
answers1158
viewsQ: Even-odd vector fill C
Good people are caught in a little problem here I will put the statement here: "In this problem you should read 15 values put them in 2 vectors as these values are even or odd. However, the size of…