Buscar

Q1P15

Esta é uma pré-visualização de arquivo. Entre para ver o arquivo original

#include <iostream>
using namespace std;
int main(){
	int ms, h, m, rh, rm;
	float s;
	
	cin>>ms;
	
	h=ms/3600000;
	rh=ms%3600000;
	m=rh/60000;
	rm=rh%60000;
	s=(float)rm/1000;
	
	
	cout<<h<<" : "<<m<<" : "<<s<<endl;
	
	
	return 0;
}

Teste o Premium para desbloquear

Aproveite todos os benefícios por 3 dias sem pagar! 😉
Já tem cadastro?

Outros materiais