class While
{
public static void main(String arg[ ])
{
int sum=0,n=1;
while(n<=15)
{
sum=sum+n;
n=n+1;
}
System.out.println("Sum of first 15 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