17 Mar 2016

Clock angle problem

/* Find minimum angle between hour and minute hand.  Input: The first line contains the number of test cases, T. T lines follow, each of which contains two integer Hour hand H and minute hand M . Output: Print the minimum angle between the hands. Constraints 1<=T<=100 01<=H<=12 01<=M<=59 */  #include...

Categories: , , , ,

Trailing Zeroes

/* Given a number find the number of trailing zeroes in its factorial. Input Format A single integer - N Output Format Print a single integer which is the number of trailing zeroes. Input Constraints 1 <= N <= 1000 */ #include <stdio.h>int main(){         int i,N,z,k;    ...

Categories: , , ,

Copyright © 2025 UPgradeCODING | Powered by Blogger