Provides to you, the basics of Java and its programs, which are of the ICSE standard in India, as well as the facility to ask questions and get the programs done in no time. Useful for home works. Just copy, paste and compile the programs. Contact us at firstname.lastname@example.org
Monday, 16 May 2011
To print the sum of the first ten numbers in Java
Question 9 : Write a program in Java to print the sum of the first ten numbers using the for loop.
Java Program :
public static void main()
System.out.print("Sum : "+s);