Back to Browse

Program to find angle between hands of clock | Python | TCS CODING QUESTION IN PYTHON | TCS CAMPUS

1.4K views
Nov 24, 2018
5:16

Hello guy's , I have created this program using Python for calculating angle between the minute hand and the hour hand of the clock. This program is mostly asked in TCS/Wipro/Capgemini Preselection exams. ------------------------------------------------------------------------- Formula to calculate the angles: 1) Hour hand : hour*30+minute (30/60). 2) Minute hand : minute*6. ------------------------------------------------------------------------- To further generate the result i used if-statement 1) if minute hand is greater than hour hand then Result = minute_hand - hour_hand. 2) else Result = hour_hand - minute_hand. ------------------------------------------------------------------------- Thank you!!! If you liked my video please don't forget to like, share and subscribe.

Download

0 formats

No download links available.

Program to find angle between hands of clock | Python | TCS CODING QUESTION IN PYTHON | TCS CAMPUS | NatokHD