Advertisement
mominulkarim77

Print Odd numbers (1-100)

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