// by Sun
#include <stdlib.h>
#include <stdio.h>
#include <windows.h> // para usar o Sleep()
int main(void){
system("title Cronômetro");
int sec = 0;
int min = 0;
int hor = 0;
int i = 0;
while (i<10){
printf("\n\t\t\t\t%dh:%dm:%ds", hor,min,sec);
Sleep(1000); // pausa a tela por um determinado tempo
system("cls");
sec++;
if(sec==60){
sec=0;
min++;
}
if(min==60){
min=0;
hor++;
}
if(hor==24){ // zera
hor=0;
}
}
}
Visite nosso grupo, Xtreme Hacking, no RaidCall - 7149047
#include <stdlib.h>
#include <stdio.h>
#include <windows.h> // para usar o Sleep()
int main(void){
system("title Cronômetro");
int sec = 0;
int min = 0;
int hor = 0;
int i = 0;
while (i<10){
printf("\n\t\t\t\t%dh:%dm:%ds", hor,min,sec);
Sleep(1000); // pausa a tela por um determinado tempo
system("cls");
sec++;
if(sec==60){
sec=0;
min++;
}
if(min==60){
min=0;
hor++;
}
if(hor==24){ // zera
hor=0;
}
}
}
Visite nosso grupo, Xtreme Hacking, no RaidCall - 7149047