*Though I know the solution for problems but I don't know whether here we write the header files while coding in C or "int main()" or while doing in Java whether we can write the Package name and lines like "scanf()" and "Inputstreamreader",bufferedRedaer,"public static void main" .
Please guide me in submitting pattern for code.
@kchabra Hi, you do not need to write
int main(), you just need to implement the function and that's it. No need to do
scanf() to read the input.