Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int f1,f2,rem,i;
- printf(" Give the First number for the Range : \n");
- scanf("%d",&f1);
- printf(" Give the Final number for the Range : \n");
- scanf("%d",&f2);
- printf("\n The Even numbers between %d and %d are ",f1,f2);
- for(i=f1; i<=f2; ++i)
- {
- rem = i % 2;
- if(rem == 0)
- printf("\n %d",i);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement