iipq

Untitled

Nov 18th, 2014
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. #include <stdio.h>
  2. int main(){
  3. int i,sum=0;
  4. for(i=10;i>-5;i-=2)
  5.     {
  6.     sum=sum+i;                                                                                                                                                                                                                                                                                  
  7.     }
  8.  
  9. printf("%d\n", sum);
  10.  
  11. return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment