Computer Science, asked by TheSTrip28, 5 hours ago

Write a c++ program to convert 25300 seconds to hours
pls tell fast
I will mark u as the brainliest
And no spam​

Answers

Answered by gulnazfatma093
2

Explanation:

#include <stdio.h>

int main() {

int sec, h, m, s;

printf("Input seconds: ");

scanf("%d", &sec);

h = (sec/3600);

m = (sec -(3600*h))/60;

s = (sec -(3600*h)-(m*60));

printf("H:M:S - %d:%d:%d\n",h,m,s);

return 0;

}

Similar questions