33,317
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
using namespace std;
void show(int h,int m)
{
cout << "Time:"<< h << ":" << m ;
}
int main()
{
int h,m;
cout << "Enter the number of hours:";
cin >> h;
cout << "Enter the number of minutes:";
cin >> m;
show(h,m);
}
#include <iostream>
using namespace std;
int main()
{
int h,m;
cout << "Enter the number of hours:";
cin >> h;
cout << "Enter the number of minutes:";
cin >> m;
cout << "Time:"<< h << ":" << m ;
}