2

Hi ive been experimenting with basic calculations and using scanf to be able to enter an integer, if i give numb_1 a value it will divide and calculate the remainder fine but i cant get it to work by being able to enter a number, it just sits on the command screen doing nothing.

Sorry for the noobish question im probably doing something clumsy but ive searched quite awhile and can't figure it out!

```
#include "stdafx.h"
#include <stdio.h>
int main ()
{
int numb_1, numb_2 = 5, result,remainder;
//ask user to enter integer
printf ("Please enter number to be divided by 5:\n");
scanf("%d\n",&numb_1);
//calculation
result = numb_1 / numb_2;
remainder = numb_1 % numb_2;
//produce output
printf ("Divided by 5 is %d with remainder %d\n\n", result,remainder);
return(0);
}
```