Hell all, I have never experienced this issue before. I am unable to accept input forin the following code block:Code:divisor
I have tried to but a blank space and a "\n" before %d on the divisor input but to no avail. This is very odd. The terminal accepts the value for dividend, prints "Enter divisor: " and just terminates like so:Code:#include<stdio.h>
void divide(int dividend, int divisor, int *quotient, int *remainder)
{
*quotient = dividend / divisor;
*remainder = dividend % divisor;
}
int main()
{
double dividend, divisor, quotient = 0;
int remainder = 0;
printf("Enter Dividend: ");
scanf("&d", ÷nd);
printf("Enter Divisor:");
scanf("&d", &divisor);
}
Any help appreciated.Code:Enter Dividend: 6
Enter Divisor:
C:\cProg>