1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| #include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{int instant_hour,instant_min,instant_sec;
int remplir,i,j=0 ,k=0 ;
printf("donner la seconde i");
scanf("%d",&i);
while (i<60){
instant_sec=instant_sec+1;
i=i+1;
if (i=60)
{j=1;
while (j<60)
{instant_min=instant_min+1;j=j+1;
if(j=60)
{k=1;
while(k<60){instant_hour=instant_hour+1;k=k+1;}}
printf(" %d:%d:%d", instant_hour, instant_min, instant_sec);
system("PAUSE");
return EXIT_SUCCESS;
system("PAUSE");
return EXIT_SUCCESS;
} |
Partager