Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int a,t=20;
- printf("Podaj liczbe od ktorej wyswietlac liczby parzyste: ");
- scanf("%d",&a);
- for (int i=0; i<t;i++)
- {
- if (a%2==0)
- if (a+(i*2)==0)
- t=22;
- else
- printf("%d ",a+(i*2));
- else
- if (a+1+(i*2)==0)
- t=22;
- else
- printf("%d ",a+1+(i*2));
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement