Last active
November 12, 2021 03:48
-
-
Save gvoze32/612d289f9b34a819679777b6df260d53 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int min, max; | |
min=jam[0]; | |
max=jam[0]; | |
for(int i=0;i<2;i++) | |
{ | |
if(min>jam[i]) | |
{ | |
min=jam[i]; | |
} | |
else if(max<jam[i]) | |
{ | |
max = jam[i]; | |
} | |
} | |
for (int t = 0; t < 2; t++) | |
{ | |
selisih += menit[t]; | |
} | |
total = (max-min)*60 + selisih; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment