0
Hour and minute values
Write a C++ program that asks the user to enter an hour value and a minute value. The main() function should then pass these two values to a type Void function that displays the two values in the format as shown: Enter the number of hours: 9 Enter the number of minutes: 28 Time: 9:28
1 Réponse
+ 2
....
void whatever(int h , int m){
cout << "Time : ";
cout << h;
cout << " : ";
cout << m;
cout << endl;
}
int main(){
int a,b;
cout << "Enter Hour : ";
cin >> a;
cout << endl;
cout << "Enter Mins : ";
cin >> b;
cout << endl;
whatever( a , b );
}
not sure what you need anyway.. xD