bsc

Comprehensive codebase and cou...
Log | Files | Refs | Activity | README | LICENSE

root / semester_1 / tuition-c / APC-PRAC-006.c

APC-PRAC-006.c (433B)


      1 /* WAP that accept seconds as input and represent it an hours, minutes and seconds. */
      2 
      3 #include <stdio.h>
      4 int main()
      5 {
      6     int sec, hours, minutes, temp;
      7     printf("Enter the no of seconds : ");
      8     scanf("%d", &sec);
      9     temp = sec;
     10     hours = sec / 3600;
     11     sec = sec % 3600;
     12     minutes = sec / 60;
     13     sec = sec % 60;
     14     printf("\n%d Seconds = %d Hours, %d Minutes, %d Seconds.", temp, hours, minutes, sec);
     15     return 0;
     16 }
© notamitgamer • Site Built: 2026-09-05 01:53:16 UTC • git-mirror commit: c170d72 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror