enter 5 digit number s and have them display in single digits,using division and the remainder mod.
This is what i have so far but it doesnt seem to work.
#include <stdio.h>
int main()
{
int num1,num2,num3,num4,num5,number;
printf("enter five digit number");
scanf("%d,%d,%d,%d,%d",&num1,&num2,&num3,&num4,&num5);
num1r=(number-(number%10000))/10000;
num2=(number%10000-(number%1000))/1000;
num3=(number%1000-(number%100))/100;
num4=(number%100-(number%10))/10;
num5=(number%10-(number%1))/1;
printf("first number is %d%d%d%d%d ",num1,num2,num3,num4,num5);
}