@Satan911: I did it then it dropped me an error and from it I fixed the source code and eneded like this:
#include <iostream>
#include <cmath>
using namespace std;
void clockfunction(int hours, int minutes);
int main()
{
int hours;
int minutes;
cout << "enter the number of hours: ";
cin >> hours;
cout << endl;
cout << "enter the number of minutes: \n";
cin >> minutes;
cout << endl;
clockfunction(hours,minutes);
system("pause");
return 0;
}
void clockfunction(int hours, int minutes)
{
cout << hours << ":" << minutes;
cout << endl;
}
ty again satan +1 of karma