Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main ()
- {
- int n, incremento = -1;
- scanf("%d",&n);
- if ( n < 0 )
- incremento = 1;
- while( n != 0 )
- {
- printf("%d", n);
- n += incremento;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement