Guest User

Untitled

a guest
Nov 21st, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. int x;
  2. int range = 0,count=0,sum,j;//range of number assign to 0;
  3.  
  4. scanf("%d", &x);
  5.  
  6. for (int i = x; i >=x; i++)//x+1 and check //condition will iterate until i greater than x
  7. {
  8. sum=0;
  9. if (i%2==0)//checking i divide by 2 == 1
  10. {
  11.  
  12. range++;
  13. printf("%d ",i);
  14. if (range==5) break; // times count checking //and will be stop when times==x
  15.  
  16. }
  17. }
Add Comment
Please, Sign In to add comment