Gentilmente, cosa c'è che non va nel mio codice?
Il programma dovrebbe chiedere le ore e i minuti e poi stamparle con i due punti in mezzo, per esempio se quando chiede le ore scrivo 13 e quando chiede i minuti scrivo 54, l'output finale dovrebbe essere "13:54".
codice:#include <iostream> using namespace std; void watch(int, int) int main() { int hours; int min; cout << "Enter the number of hours "; cin >> hours; cout << "Enter the number of minutes "; cin >> min; return 0; } void watch(int hours, int min) { cout << hours<<":"<<min; }