Friday, August 16, 2013

Java Program 005

Write a program DisplayPattern1.java, which accepts int value as arguments and print the Following Output:
Ex: Input: 12
Output: 
1   2   3   4
5   6   7   8
9  10  11 12

Java Program 004

write a Program DisplayNumbersDemo1.java, which accepts Three int values as command line arguments (Start value End value and Increment value) and print the number between the given Numbers.

Ex:    Input: 10, 30, 2

Output: 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30

Friday, August 9, 2013

Java Program 003

Write a program to print sum of all even numbers between given numbers.

Java Program 002

Write a program DisplayNumbers.java, which accepts two int values as command line arguments (Start value and End value) and print the numbers between the given Numbers.

Java Program 001

Write solution for java code for counting the number of numbers, reading one at a time. If the given no is negative, count can be stopped and program exit.