
Patrick B. answered 07/04/19
Math and computer tutor/teacher
#include <stdio.h>
int main(void)
{
long userNum;
int x=0;
int iLoop;
printf(" Please input userNum :>");
scanf("%ld",&userNum);
while (x==0)
{
printf(" Please input x :>");
scanf("%d",&x);
}
for (iLoop=0; iLoop<4; iLoop++)
{
userNum = userNum / x;
printf(" %ld ",userNum);
}
}