So, I was practicing functions loops etc. and I stuck on doing this.I am pretty beginner on programming but I search a lot which makes me learn real faster. (By the way I tried my code to check if the input from user is number or not. )
printf("Define numbers.\n");
printf("Select: ");
scanf("%d", &x);
printf("Select: ");
scanf("%d", &y);
if (y = temp)
{
printf("Division of something by 0 is undefined.\n");
}
else
{
printf("Division of %d and %d is %d\n", x, y, div(x, y));
}
So I declared temp = 0 I thought it would do the trick but it didnt.