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
#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
No comments:
Post a Comment