I cannot enter the value for type2 or grind2 or wght2 in the output what is the error?

The format specifier %.1lf is not correct.

Unlike printf format specifiers, scanf format specifiers don't take a precision, so remove it.

scanf(" %lf", &temp1);
...
scanf(" %lf", &temp2);