#include const char mynum[] = "0123456789"; void main(void) { unsigned char z; DDRB = 0xFF; for(z=0;z<10;z++) PORTB=mynum[z]; }