Hi friends today i want to display the logic behind the , time division in your programming as well as daily routine work or to crack the math questions also..
Lets take an example :
Suppose I have 5 hours and 30 minutes (5h30m)
Then the step I follow are:
The same logic work for Minutes and second (mm::ss) format
Hope you got the point.....
Lets take an example :
Suppose I have 5 hours and 30 minutes (5h30m)
Then the step I follow are:
- First divide the hours by 2 . like 5/2 we got 2 as dividend and 1 as reminder.
- Now convert this reminder to minutes by multiplies it to 60.
- After that add this 60 to the 30(already given minutes).
- total is 90 (minutes you have).
- then divide the Ninety by 2 we got 45.
- So at last, half of the given time is 2 hour 45 (2h 45m)
- Basically we have to make the conversion like
- hours:minutes:seconds format.
The same logic work for Minutes and second (mm::ss) format
Hope you got the point.....
0 comments:
Post a Comment