why is it that if i put %.2f in the scanf line i get garbage in the conversion ? i have a %.2f in the printf line below to get a 2 decimal value so i thought it has to be the same for the scanf. with %f it works fine.
// Convert Inches to Millimeters
{
float inch;
printf("Enter inch value: ");
scanf("%f", &inch);
printf("\nThat is equal to %.2f millimeters",inch*25.4);
return 0;
}
thanx