HI

could any one help me to know the main idea to type program which converted from seconds to hours, minutes and seconds.

thnks،،

Recommended Answers

All 2 Replies

There are 60 seconds in a minute, and 60 minutes in an hour. There's also a very useful function called modulo (mod) that you might wanna try out. Now try to think a little. If I tell you more I think I've ended up finishing your homework.

HI

could any one help me to know the main idea to type program which converted from seconds to hours, minutes and seconds.

thnks،،

You could write a method that convert the seconds hours using a loop, and the same for minutes to seconds.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.