Hello There, Guest! RegisterLogin with Facebook
Login with Facebook

New Anna University Nov / Dec 2016 Examination Important Questions
New Anna University (UG / PG) Nov/Dec 2016 and Jan 2017 Theory , Practical Exam Timetable
>>> Anna University Sixth Semester Question Bank Collection (R2013) ECE,MECH,CSE,IT,EEE,CIVIL,EIE
>>> Anna University November/December 2015 Examination Question Papers
>>> Anna University Study Materials for all Departments
>>> Anna University Question Papers : April May June 2015 Question Papers | Nov Dec 2014 and Jan 2015 Question Papers

Register or Login to Submit Study Materials , Shoutbox and also to access Many Features !!

Vidyarthiplus Shop :: Handwritten Premium Lecture Notes
Share your Study Materials with us
Share your Study Materials with us : Click Here

ONLINE DEBUGGING CONTEST August 2013 - by Arthi
#4

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]


Reply
#5


Yep Sure, i will also try to Debug it..

“Work hard in silence, let your success be your noise...”


Reply
#6

Try better.... @Prabakar

Fear is a reaction,but courage is a destination


Reply

Subscribe


Recommend on Google