Time required to meet in equilateral triangle | CPP code to find time taken by animals to meet ; function to calculate time to meet ; Driver Code
#include <bits/stdc++.h> NEW_LINE using namespace std ; void timeToMeet ( double s , double v ) { double V = 3 * v / 2 ; double time = s / V ; cout << time ; } int main ( void ) { double s = 25 , v = 56 ; timeToMeet ( s , v ) ; return 0 ; }