Advertisement
Aminpro

[ECP 1016]Tutorial 5 Question 1(i)

Jul 15th, 2012
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.20 KB | None | 0 0
  1. //https://www.facebook.com/AminproPastebin
  2.  
  3. #include <stdio.h>
  4.  
  5. int main()
  6. {
  7.     int i;
  8.  
  9.     for(i=-100; i<=-5; i=i/2)  
  10.     {printf("%d", i);}
  11.     printf("\nFinal value of i is %d\n", i);
  12.  
  13.     return 0;
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement