Advertisement
Guest User

Untitled

a guest
Oct 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.92 KB | None | 0 0
  1. #
  2. include < stdio.h >
  3.  
  4.   int main() {
  5.     int first, second, third, forth; //,output1, ;
  6.  
  7.     scanf("%d %d   %d %d", & first, & second, & third & forth);
  8.  
  9.     if (first > tird) { //case 2,4,5,6,8
  10.       if (second < forth && first < forth) { // case 2
  11.         printf("[%d,%d]", first, second)
  12.       }
  13.       if (first < forth && second > forth) { // case 4
  14.         printf("[%d,%d]", first, forth)
  15.  
  16.       }
  17.  
  18.       if (forth < first && forth < second) { // case 8
  19.         printf("[%d,%d]", )
  20.  
  21.       }
  22.  
  23.     }
  24.     if (third > first) { //case 1,3,7
  25.       if (second > third && forth > second) { //case 1
  26.         printf("[%d,%d]", )
  27.  
  28.       }
  29.       if (second > third && second > forth) { //case 3
  30.         printf("[%d,%d]", )
  31.  
  32.       }
  33.       if (second < third && second < forth) { //case 7
  34.         printf("[%d,%d]", )
  35.  
  36.       }
  37.  
  38.     }
  39.  
  40.     printf("%02d:%02d:%02d\n", first, second, third);
  41.     return 0;
  42.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement