Number of open doors | TCS Coding Question | Function that counts the number of doors opens after the Nth turn ; Find the number of open doors ; Return the resultant count of open doors ; Driver Code
using System ; class GFG { static int countOpenDoors ( int N ) { int doorsOpen = ( int ) Math . Sqrt ( N ) ; return doorsOpen ; } public static void Main ( ) { int N = 100 ; Console . Write ( countOpenDoors ( N ) ) ; } }