Friday, January 29, 2010

OOP WEEK 3 Challenge

OOP WEEK 3 Challenge
void bio_putint(int val){
char p[100];
int temp,i=0;
while (val/10 > 0){
temp = val ;
p[i++] = '0' + temp % ((val=val/10)*10);
}
p[i++] = '0'+ val;
p[i] ='\0';
for(i = i-1; i>=0; i--)
bio_putch(p[i]);

}

No comments:

Post a Comment