Responsive Ads Here

Wednesday, November 26, 2014

Second to Hour /Min convert

Second to Hour /Min  convert

 

#include <stdio.h>
main()
{
    int x,y,hour,min,sec,total;
    printf("Total secend= ");
    scanf("%d",&total);
    hour=total/3600;
    printf("%d Hour\n",hour);
    x=total%3600;
    min=x/60;
    printf("%d Minute\n",min);
    y=total/60;
    sec=total-60*y;
    printf("%d Second\n",sec);
    return 0;
}

No comments:

Post a Comment

php4

<?php    // Start the session  session_start();  ?>  <!DOCTYPE html>  <html>  <head>       <link rel=&q...