#include void main(void) { char mynum[]= {+1,-1,+2,-2,+3,-3,+4,-4}; unsigned char z; DDRB = 0xFF; for(z=0;z<8;z++) PORTB = mynum[z]; while(1); }