this is code i just wrote(im just learning c). for some reason, this program complies fine, and it runs fine, but when i enter a number for inches, and then press enter it says "Proj3 has caused an error in PROJ3.EXE. Proj3 will now close." i tried restarting my pc, but it still gives me that problem. i dont see anything wrong with the code, so if someone could try and run it on their pc, id appreciate it. btw, im running microsoft visual studio 6.0 enterprise or professional edition(dont remember what its called). thanks alot!


#include <stdio.h>

main()
{

double inch, cent;

printf("this program converts inches to centimeters.\n");
printf("how many inches?");
scanf("%f", inch);

cent=inch*2.54;

printf("%f inches is equal to %f. centimeters.\n", inch, cent);

}