Enigmatics-Society / Algorithms-Hacktoberfest2k21

3 stars 12 forks source link

Create clockangles.c #24

Closed uthsavj closed 2 years ago

uthsavj commented 2 years ago

Program to find shorter angle between hands of a clock at any given time. Input format The first line contains the number of test cases T. Each test case contains two integers h and m representing the time in hour and minute format.

Output format For each test case on a new line, print the required shorter angle.

Input 2 5 30 6 00 Output 15 180