SHOW:
|
|
- or go back to the newest paste.
1 | - | #include <stdlib.h> |
1 | + | |
2 | - | #include <stdio.h> |
2 | + | |
3 | double *p, *p2; | |
4 | double m, v; | |
5 | ||
6 | print("Introduce que cantidad de numeros vas a introducir:/n"); | |
7 | scanf("%d",&cantidad); | |
8 | p=(double*)malloc(sizeof(double)*cantidad); | |
9 | p2=p; | |
10 | for(i=0;i<cantidad;i++){ | |
11 | - | p2=sizeof(double)*cantidad; |
11 | + | |
12 | scanf("%lf",p2); | |
13 | p2++; | |
14 | } | |
15 | m = media(p,cantidad); | |
16 | v = varianza(p,cantidad); | |
17 | - | media(p2,cantidad); |
17 | + | |
18 | - | varianza(p2,cantidad); |
18 | + |