How to return int from pow in C#

1 Answer

0 votes
using System;

class Program
{
    static void Main() {
        int n = (int)Math.Pow(2, 5);
        
        Console.WriteLine(n);   
    }
}
 
 
 
 
/*
run:
   
32
   
*/

 



answered Jan 7, 2022 by avibootz

Related questions

...