MR PROGRAMATOR

Reloj

/***********************************************/

/*    Nombre del programa : reloj.cpp          */

/*    Autor : Luis Alberto Saucedo Quiroga     */

/*    Objetivo : Simular un reloj              */

/*    Fecha : 29/04/12                         */

/***********************************************/

#include "stdafx.h"

#include "stdlib.h"

int _tmain(int argc, _TCHAR* argv[])

{

 int H,M,S,i;

 for(H = 0; H<24; H++)

  for(M = 0; M<60; M++)

   for(S = 0; S<60; S++)

   {

      printf("n     RELOJn");

      printf("n  %2d : %2d : %2d",H,M,S);                      

for(i = 0; i<300000000; i++){}/*Delay*/

      system("cls");/*Limpiar la pantalla*/

   }

  return 0;

}


Este sitio web fue creado de forma gratuita con PaginaWebGratis.es. ¿Quieres también tu sitio web propio?
Registrarse gratis