i have one problem in casting

 double f, g;
      f = Math.Pow((double)p, (double)r);
        g = Math.Pow((double)q, (double)(n - r));
        Console.WriteLine("f={0,3},g={1}", f, g);

explain more clearly please...
what the exactly problem?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.