mostafaxx

loops_and_gdb_test_programe_code

Jul 22nd, 2011
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. //simple programe that counts from 1 to 3 and print Finished then Exit
  2. //it's written to test a problem in GDB
  3.  
  4. #include <stdio.h>
  5.  
  6. void main()
  7. {
  8.     int i = 0;
  9.     printf("Count from 1 to 3\n");
  10.  
  11.     for(i=0;i<3;i++)
  12.     {
  13.         printf("%i\n",i);
  14.     }
  15.  
  16.     printf("Finished\n");
  17.     printf("Now to Exit\n");
  18. }
Advertisement
Add Comment
Please, Sign In to add comment