Update
This commit is contained in:
9
array.c
9
array.c
@@ -6,10 +6,7 @@
|
||||
#include "stdio.h"
|
||||
#include "stdlib.h"
|
||||
#include "time.h"
|
||||
|
||||
int myrand(int min, int max){
|
||||
return rand()%(max-min)+min;
|
||||
}
|
||||
#include "myRand.h"
|
||||
|
||||
int arraydaco() {
|
||||
int pole[10];
|
||||
@@ -53,7 +50,9 @@ int arraydaco() {
|
||||
if (pole[i] < min) {
|
||||
min = pole[i];
|
||||
}
|
||||
if (pole[i] % 2){
|
||||
}
|
||||
for (int j = 0; j < 10; ++j) {
|
||||
if (pole[j] % 2){
|
||||
neparne++;
|
||||
} else{
|
||||
parne++;
|
||||
|
||||
Reference in New Issue
Block a user