Advertisement
jacob_segundo

contador

Apr 25th, 2023
933
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | Source Code | 0 0
  1. #include<stdio.h>
  2. int main(){
  3.     int h , min, sec,i ,y ,x;
  4.     /*int h=0;
  5.     int min=0;
  6.     in  sec=0;*/
  7.    
  8.     for(i=0; i<23; i++){
  9.         h=i;
  10.     //  printf("%d %d %d \n", h, min, sec);
  11.    
  12.     for(y=0; y<59; y++){
  13.         min =y;
  14.     //  printf("%d %d %d \n", h, min, sec);
  15.         system("cls");
  16.     for(x=0; x<60; x++){
  17.         sec=x;
  18.         sleep(1);
  19.        
  20.         printf(" TIME %02d:%02d:%02d \r", h, min, sec);
  21.        
  22.    
  23.     }
  24.     }
  25.     }
  26.     return 0;
  27. }
Tags: time
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement