Input
Output
>> javac Main.java
>> java Main
Enter any number : 
Sum of first 50 natural numbers : 1275