Java Blog

 
 
 
 public class JAVA_031
 {

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

       for(int i=1;i<=limit;i++)
       {
          if((i%3)==0)
            continue;

          sum+=i;
       }

       System.out.println(\"Sum of first 20 integers with skipped integers divisible by 3 = \" + sum);
    }
 }

    Related Post:
  1. File handling program to copy characters from one file to another

  2. Program to show the use of operator (&gt;&gt;&gt;) Shift Right, filling with zeros from the left

  3. Program to show the use of some Character Methods

  4. Program sets up a String variable containing a paragraph of text of your choice. Extract the words from the text and sort them into alphabetical order

  5. Program of an applet to illustrate BarChart

  6. Socket program of HTTP Server

  7. Socket program of multi client chat server

  8. Corba program to Write a Echo server and client with UDP server and client

  9. Pass the marks of 10 students from the client side design a servlet, which takes these marks and returns the number of students who obtained first cls

  10. Program to perform Merge Sort

  11. Program to display following things on the client machine a)date and time of the server machine b)date and time of the client machine and difference

  12. Program to show an example of using a Non-Static Nested Class

  13. Program to show the use of Labeled Continue Statement

  14. Program to show the use of Logical OR Operator (|) in If Statements

  15. Program to declare, initialize and print a StringBuffer object

  16. Program to declare, initialize and print a String object

  17. Program to append a StringBuffer by StringBuffer, String objects and other Basic Data Types

  18. Program to print triangle of numbers

  19. An applet program to take user input and display

  20. Encrypt the text that you want to send on the client side. The server side decrypts it after receiving. Append server time after each word in the sent

 
 
Didn't find what you were looking for? Find more on Program to show the use of the Continue Statement