bsc

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

APC-PRAC-006.c (569B)


      1 /*
      2  * Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025
      3  * Repo: https://github.com/notamitgamer/bsc
      4  * License: MIT
      5  */
      6 
      7 /* WAP that accept seconds as input and represent it an hours, minutes and seconds. */
      8 
      9 #include <stdio.h>
     10 int main()
     11 {
     12     int sec, hours, minutes, temp;
     13     printf("Enter the no of seconds : ");
     14     scanf("%d", &sec);
     15     temp = sec;
     16     hours = sec / 3600;
     17     sec = sec % 3600;
     18     minutes = sec / 60;
     19     sec = sec % 60;
     20     printf("\n%d Seconds = %d Hours, %d Minutes, %d Seconds.", temp, hours, minutes, sec);
     21     return 0;
     22 }
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror