Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- main () {
- float v[]={1.0,2.0};
- produto(v,10.0);
- int j;
- for (j=0; j<2;j++){
- printf("%f\n",v[j]);
- }
- }
- void produto(float vet[], float num ) {
- int i =0;
- for (i=0 ;i<2 ;i++) {
- vet[i]=vet[i]*num;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement