Program to display first 10 even numbers and their squares

/*Program to display first 10 even numbers and their squares*/

class P3
{
    public static void main(String args[])
    {
        int n ,count=1;
        System.out.println("First 10 even numbers and their squares:\n");
        System.out.println("\nNumber\tSquare\n");
        for (n=2 ;count<=10; n=n+2)
        {
            System.out.println(n+"\t"+(n*n));
            count++;
        }
    }
}

1 comments:

Anonymous said...

goyard handbags
supreme outlet
golden goose sneaker
hermes outlet online
travis scott jordan
bape hoodie
goyard
air jordan
hermes outlet
jordan shoes

Post a Comment

 
 
 
 


Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies|