Fine...Many of u tried well.Since it's getting late I'm going to tell the answer.
This is just a basic concept of oops.In OOPS you would have seen some concepts like classes,nested classes, nested loops.
But in OOPS there is no concepts called "nested loops"
(i.e) we can't use a function inside any other function. The function can be declared and called either by using objects or not using objects.
Here I have used two functions namely get() and dis() inside the main function.This is the bug in the given code.
Hence the correct code is
DEBUGG.txt (Size: 654 bytes / Downloads: 120)
This is just a basic concept of oops.In OOPS you would have seen some concepts like classes,nested classes, nested loops.
But in OOPS there is no concepts called "nested loops"
(i.e) we can't use a function inside any other function. The function can be declared and called either by using objects or not using objects.
Here I have used two functions namely get() and dis() inside the main function.This is the bug in the given code.
Hence the correct code is
DEBUGG.txt (Size: 654 bytes / Downloads: 120)