text: C ++ implementation to find the probability of not getting two consecutive heads together when N coins are tossed
code: #include <bits/stdc++.h> NEW_LINE using namespace std ; float round ( float var , int digit ) { float value = ( int ) ( var * pow ( 10 , digit ) + .5 ) ; return ( float ) value / pow ( 10 , digit ) ; }