do: {code} while (true)

A practice in coding

and algorithms

Calculate Angle Between Clock Hands

Problem: Calculate the angle between clock hands when given the number that each cock hand is at (ie. hour hand is at the 12, minute hand is at the 3, result should be 90°). Solution 1: Calculate Angle with inputs as clock face number Solution 2: Calculate smaller angle for precise time


Follow My Blog

Get new content delivered directly to your inbox.

Design a site like this with WordPress.com
Get started