Java Blog

 
 
 
 public class JAVA_029
 {

    public static void main(String[] args)
    {
       int limit=20;
       int sum=0;
       int i=1;

       do 
       {
          sum+=i;
          i++;
       }
       while(i<=limit);

       System.out.println(\"Sum of first 20 integers = \" + sum);
    }
 }

    Related Post:
  1. Program using Switch case to compute the net amount to be paid by a customer

  2. An applet program that creates string dynamically and displays it

  3. CORBA PROGRAM TO GET THE HTML CODE FROM ANY URL

  4. Corba program of UDP client server application which sends the news to the client. Server takes the news from the NewsDataFile located at the server

  5. corba program of client and a DNS server where given a URL the server sends back an IP address

  6. An applet program that displays random dot

  7. Program to generate Fibonacci Series of a given number

  8. Socket program of HTTP Server

  9. Program of an applet to illustrate BarChart

  10. Biological Sequence Allignment Using Dynamic Programing

  11. Develop a game application in CORBA for which the player will guess a number between 1 to 100, which will be compared to the random number generated b

  12. An applet program to find maximum of three numbers using textField

  13. Program of creating a file using text fields in windows

  14. Program to show an example of Calling a Base Class Method from a Derived Class

  15. Program to ask question and accept answer up to 3 attempt and display right answer if it is wrong

  16. RMI application for getting the final total price of the shopping list with some of the following items and quantities chosen by the user

  17. Program which creates an Array of character. Make one function with one argument as a character and that function throw a user defined exception

  18. Program to compare Strings by compring successive corresponding characters, starting with the first character in each String

  19. An applet program to take user input and display

  20. Program to read command line arguments

 
 
Didn't find what you were looking for? Find more on Program to show the use of Do-While Loop