Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int fullTime;
- int minutes;
- int hours;
- int main(int argc, char *argv[]) {
- if (argc > 1) {
- fullTime = atoi(argv[1]);
- }
- else {
- fullTime = 214;
- }
- minutes = fullTime % 60;
- hours = (fullTime - minutes) / 60;
- printf("Time remaining: %d hours %d minutes\n", hours, minutes);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement