
Patrick B. answered 03/05/20
Math and computer tutor/teacher
#include <stdio.h>
int main()
{
int userNum, x;
double q;
printf(" input user # :>");
scanf("%d",&userNum);
printf(" input x :>");
scanf("%d",&x);
if (x!=0)
{
q=userNum*1.0f/x;
printf(" quotient is %12.6f \n",q);
}
else
{
printf(" division by zero not allowed \n");
}
}