Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int x;
- int range = 0,count=0,sum,j;//range of number assign to 0;
- scanf("%d", &x);
- for (int i = x; i >=x; i++)//x+1 and check //condition will iterate until i greater than x
- {
- sum=0;
- if (i%2==0)//checking i divide by 2 == 1
- {
- range++;
- printf("%d ",i);
- if (range==5) break; // times count checking //and will be stop when times==x
- }
- }
Add Comment
Please, Sign In to add comment