hi,
thanks for the help we have now after some time figured out a suitable way to answer this, only that we now want the program to run continuously until stopped by the user, any suggestions would be aprreciated.
Code:
#include <stdio.h>
main()
{
int user_in;
printf("************* enter an integer from value 1 to 9999: ******************\n\n");
scanf("%d", &user_in);
int a = user_in/1000;
int b = user_in % 1000 / 100;
int c = user_in % 100 / 10;
int d = user_in % 10 / 1;
printf("%d lots of 1000s\n\n",a);
printf("%d lots of 100s\n\n",b);
printf("%d lots of 10s\n\n",c);
printf("%d lots of 1s\n\n",d);
if (user_in > 9999) {
printf("error");
}
system("pause");
}