Advertisement
mominulkarim77

1থেকে 100 পর্যন্ত odd সংখ্যার যোগফল।

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