Thanks guys soooo much. I got it to work.. It's AWESOME!!! I would like to thank everyone to help. Here is the code.... I left out a Stupid print statement.... LOL
Code:
#include <stdio.h>
int main(void) {
int split_num,count,digit;
printf("\nEnter a positive integer (up to 9 digits in length);");
printf("\nhalt with a non-positive integer:\n");
scanf("%d",&split_num);
/* Start outer loop: makes program repeat */
while(split_num>0) {
count=3;
/* Inner Loop */
while(split_num >0){
if(count==3) {
count=0;
printf("\n ");
}
digit=split_num%10;
split_num=split_num/10;
printf("%d ",digit);
count++;
}
/* Get new number to split */
printf("\n\n");
printf("\nEnter a positive integer (up to 9 digits in length);");
printf("\nhalt with a non-positive integer:\n");
scanf("%d",&split_num);
}
return (0);
}