class DoWhile
{
public static void main(String arg[ ])
{
int sum=0,n=1;
do
{
sum=sum+n;
n=n+1;
}while(n<=20);
System.out.println("Sum of first 20 nembers: "+sum);
}
}
Where Your Need Ends
About The Author
He has interest in programming in C, C++ and Java. He has been programming since 2007. He is the Founder of "Era of Skills".
You can follow him on Facebook