Advertisement
Guest User

Untitled

a guest
Aug 24th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. void slice(int heure, int minute)
  5. {
  6. int *pHeure = &heure;
  7. int *pMinute = &minute;
  8.  
  9. *pHeure = minute/60;
  10. *pMinute = minute%60;
  11. }
  12.  
  13.  
  14.  
  15. int main()
  16. {
  17. int heure = 0, minute = 90;
  18.  
  19. slice(heure,minute);
  20.  
  21. printf("%d heures et %d minutes\n",heure,minute);
  22.  
  23. return(0);
  24. }
  25.  
  26.  
  27. /*
  28.  
  29.  
  30.  
  31. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement