Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main(int argc, char *argv[])
- {
- int li , ls , n;
- fflush(stdin);
- printf("Introduzca el limite inferior \n");
- scanf("%d",&li);
- fflush(stdin);
- printf("Introduzca el limite superior \n");
- scanf("%d",&ls);
- for ( n=li ; n <= ls ; n++)
- {
- if ( n%2 == 0)
- printf("\n %d",n);
- }
- /*
- {
- else
- printf("%d",n);
- }
- */
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment