Problems that I could see.
Format specifier should be "%g" instead of "g%" in below line:
scanf("g%", &no_week);
You are trying to assign floationg point value to an integer by below line:
hour = 2.5;
Additionally, it's a good practice to initialize certain variables:
float no_week = 0.0;