Advertisement
Md_hosen_zisad

even++

Aug 16th, 2017
374
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.  
  5.     int i,sum=0;
  6.     for (i=0;i<=100;i=i+2)
  7.     {
  8.         sum=sum+i;
  9.  
  10.     }
  11.     printf("sum of even number== %d",sum);
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement