STUDY TOOLS, DETAILS OF ELECTRONICS AND NON ELECTRONICS SOFTWARES.TECHNO QUERIES & STORIES ABOUT FAMOUS PERSONALITIES .
Thursday, 14 March 2013
do function
class abcd
{public static void main(String args[])
{int n=10;
int sum=0;
do
sum+=n--;
while(n>0);
System.out.println("sum of numbers from 1 to 10 is="+sum);
}
}
No comments:
Post a Comment