Advertisement
Guest User

Untitled

a guest
May 21st, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     float m, n;
  7.     printf("Input m, n: ");
  8.     scanf("%f %f", &m, &n);
  9.  
  10.     float t;
  11.  
  12.     printf("%f\n", 60*m - 11*n);
  13.     if (60*m - 11*n >= 0)
  14.         t = (60*m - 11*n) / 11;
  15.     else
  16.         t = (720 + 60*m - 11*n) / 11;
  17.  
  18.     printf("%f", t);
  19.  
  20.  
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement