Display time

Description:

C++ program to display time using class Test Case 1 Input (stdin) 12 13 10 Expected Output 12:13:10 Test Case 2 Input (stdin) 10 12 10 Expected Output 10:12:10

Program :

#include <iostream>
using namespace std;
int main()
{
 int a,s,d;
  cin>>a>>s>>d;
  cout<<a<<":"<<s<<":"<<d;
 return 0;
}