First, USE CODE TAGS. Put [ code ] in front of any code you type, and [ /code ] (both without the spaces) after it. This makes it more readable and is good manners.
Second, you're dividing number of hours by 60 to get number of days.
Third, you're inputting a value in seconds into t_ime_s, but you never do anything with it after that. s has NO MEANINGFUL VALUE until you do something with it, like set it to equal t_ime_s. Unless you assign them a value, ALL non-static variables WILL contain garbage.
Fourth, you don't need the variable t_ime_s at all. Just do to put the number of seconds into s, then
Code:
m = s / 60;
h = m / 60;
d = h / 24;
will make sense.
Of course, you could just convert the number of seconds to days in one line, using something like
Code:
d = (((s / 60) / 60) / 24);
and then print off the value of d; this would be better unless you need the number of minutes and hours later.
You also should use floats. I'm not sure what "long" defaults to, but long is just a modifier for other variable types, like float or int... or just regular int, if you want whole number values.
I'd suggest using regular floats; they provide plenty of precision for your needs. I also suggest formatting the output with %0.2f instead of just %f, so only 2 decimal places will be output, unless you really WANT the extra precision.
The finished code, in this case, would look something like this, assuming you didn't need the number of hours and minutes and wanted to limit the decimal precision:
Code:
float s, d;
printf("Please enter the number of seconds and press Enter.\n");
scanf("%f", &s);
d = (((s / 60) /60) / 24);
printf("%0.2f seconds is equal to %0.2f days.\n", s, d);