Hi and good day y’all.
Can I get a little bit of help with the following task…
Write a program that reads days, hours, minutes and seconds from the standard input. Display the total amount of seconds.
this is my solution but it doesn’t get registered.
let seconds = 1;
let minute = 60 * seconds;
let hour = 60 * minute;
let day = 24 * hour;
total = (4 * day) + (3 * hour) + (11 * minute) + (40 * seconds);
I know is not the most elegant solution but it does work.
Does anybody have a clue as to what I’m getting wrong?