Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main() {
- int cantidad, i;
- double *p, *p2;
- double m, v;
- print("Introduce que cantidad de numeros vas a introducir:/n");
- scanf("%d",&cantidad);
- p=(double*)malloc(sizeof(double)*cantidad);
- p2=p;
- for(i=0;i<cantidad;i++){
- print("/nIntroduce un numero:/n");
- scanf("%lf",p2);
- p2++;
- }
- m = media(p,cantidad);
- v = varianza(p,cantidad);
- free(p);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement