Reloj Digital En C++
simular el comportamiento de un reloj dijital en c++:
#include <iostream>
using namespace std;
int main()
{
long double h,m,s;
for (h=1;h<=23;h++)
{
for (m=1;m<=59;m++)
{
for (s=1;s<=59;s++)
{
cout<<endl;
cout<<h<<":"<<m<<":"<<s<<endl;
cout<<endl;
system ("pause");
}
}
}
return 0;
}
Publicidad