text: Find the number of Chicks in a Zoo at Nth day | C # implementation of the approach ; Function to return the number of chicks on the nth day ; Driver code
code: using System ; class GFG { static int getChicks ( int n ) { int chicks = ( int ) Math . Pow ( 3 , n - 1 ) ; return chicks ; } public static void Main ( ) { int n = 3 ; Console . WriteLine ( getChicks ( n ) ) ; } }