TOPIC

Runtime error, JS, me ajudem por favor

Erik Israel asked 4 months ago

var input = require('fs').readFileSync('/dev/stdin', 'utf8'); var lines = input.split('\n');

int N = (input);//segundos

qtdHoras = N / 3600; segundos = N % 3600;

qtdMinutos = N / 60; segundosum = N%60;

totalsegundos = segundos + segundosum

console.log(qtdHoras ":" + qtdMinutos ":" + totalsegundos);

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.