Sir i am getting run time error in this code but running fine in eclipse
@karamjitverma89 Hi bro, basically on online judge, the class in which your main method resides, the name should be Main of that class, also the object should be Main.
Change that there will be no runtime error!
If ya query is resolved bro, mark it resolved and rate full.
Happy coding!