Advertisement
aperles

Untitled

Feb 5th, 2014
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int i;
  2. double *p2;
  3. double resultado;
  4.  
  5. resultado = 0.0;
  6.  
  7. for (i=0; i<100; i++){
  8.     resultado = resultado + *p2;
  9.     p2 = p2+2;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement