ONLINE DEBUGGING CONTEST August 2013 - by Arthi

32
Code:
using System;
namespace sample
{
 class program
  {
    static void main  (string[] args)
    {
       void get()
        {
            int s,n,k;
           Console.Writeline("enter any value for s",s);
            s=Convert.ToInt32(console.readline());
            Console.Writeline("enter any value for n",n);
            n=Convert.ToInt32(console.readline());
            k=n*(s*s + n*n);
         }
         void dis()
          {
             console.Writeline("k="+k);
             console.readline();
           }
      }
  }
}
correct?
here is the bug "Console.Writeline("enter any value for sn);
n=Convert.ToInt32(console.readline());"
"Learning By Sharing" - Thanks for visit!
[Image: 1VXVt.gif]
Yep Sure, i will also try to Debug it..
“Work hard in silence, let your success be your noise...”
Try better.... @Prabakar
Fear is a reaction,but courage is a destination

    ONLINE DEBUGGING CONTEST August 2013 - by Arthi