Write a CPP program to find the minute at which the minute hand and hour hand coincide.

Write a CPP program to find the minute at which the minute hand and hour hand coincide.

#include
#include  
using namespace std;

void find_time(int h1)
{

  int theta = 30 * h1;
  cout << "(" << (theta * 2) << "/"
       << "11"
       << ")"
       << " minutes";
}

int main()
 {
  int h1 = 3; 
  find_time(h1); 
  return 0;
}


Output :
(180/11) minutes

Comments

Popular posts from this blog

Solve

Solved practical slips of 12th Computer Science journal

SOLVE QUESTION ANSWERS ON OPERATING SYSTEM .