skip to main
|
skip to sidebar
Home
Java Examples
Home
Business
Internet
Market
Stock
Downloads
Dvd
Games
Software
Office
Parent Category
Child Category 1
Sub Child Category 1
Sub Child Category 2
Sub Child Category 3
Child Category 2
Child Category 3
Child Category 4
Featured
Health
Childcare
Doctors
music
politics
Uncategorized
Thursday, 28 July 2011
A simple program to find the average of 10 nos. using array class Arg
21:00
Iam yours
No comments
class Arg
{
Public static void main (string arg [])
{
int no []= { 10 ,12 , 14 ,16 ,18 ,20 ,22, 24 ,26 28);
int result = 0;
for (i=0; i<10;i++)
result =result + no [i];
System.out.println(“Average is “ +result/10);
}
}
Posted in:
Program Examples
Newer Post
Older Post
Home
0 comments:
Post a Comment
Subscribe to our RSS Feed
Follow Us on Twitter
Be Our Fan on Facebook
Popular
Tags
Blog Archives
Popular Posts
Process of building and running java application programs
The Java Runtime Environment
The Java Runtime Environment (JRE) consists of the JVM and the program on the other. The Java Runtime Environment runs code compiled for t...
Structure of JAVA program
A JAVA program may contains many classes of which only one class defines a main method. Classes contain data members and methods that oper...
Process of compilation
Simple program for making Pyramid using only while loop
1 1 2 1 2 3 1 2 3 4 1 2 3 4…..N class series { Public static void main (String args []) { int N=10; i=1; j=1; while( i<N) { j=1; w...
Simple program for printing the following chatuskon upto given value and print the patter for “*”
* * ...
Program to enter a 5*5 matrix and display it
class matrix { Public static void main (String arg []) { int two [] [] = new int [5] [5]; { int i,j,k =0; for (i= 0; i<5 ; i++) { for (j...
Features of java programming language
Compiled and interpreted Platform – Independent Object – Oriented Robust and Secure Distributed Multithreaded Dynamic and Extensible Compi...
A simple program to arrange the 10 nos. in ascending order using array.
class ASC { Public static void main (String arg[]) { int I,j,k; int a[] ={10,12,18,16,3}; for (i=1;i<5;i++) { for(j=0;j<=3;j++) { if(...
Labels
Basic Programs
(1)
Classes
(1)
CONCEPTS
(2)
Constructors
(1)
Java Features
(1)
Objects
(1)
Program Examples
(9)
Selection Statements
(1)
Simple Programs
(1)
Blog Archive
▼
2011
(25)
►
07/31 - 08/07
(4)
▼
07/24 - 07/31
(21)
How to run Java program
Features of java programming language
Program to enter a 5*5 matrix and display it
A simple program to arrange the 10 nos. in ascendi...
A simple program to find the average of 10 nos. us...
Structure of JAVA program
Simple program for printing the following chatusko...
simple program for printing the following pyramid ...
Program for Printing the following pyramid
Simple program for making Pyramid using only while...
Program to find the greater number from the three ...
A simple program for addition of two values:
The Java Runtime Environment
Just in Time Compilers (JIT)
Process of compilation
Java virtual Machine
Process of building and running java application p...
Difference Between applet and application
Data Types
Java’s Magic: The Bytecode
A First Simple Program
Blogger templates
0 comments:
Post a Comment