R4R
Right Place For Right Person TM
 
R4R Java SourceCode Calculate Average

Calculate Average

In this example we are calculating the average.

SOURCE CODE

class average
{
public static void main(String args[])
{
int nums[]={12,12,32,46,36,47,47,55};
int result=0;
int i;
for(i=0;i<8;i++)
result=result+nums[i];
System.out.println("average is"+result/8);
}
}

Download Source File
Tolal:0 Click:
Show All Comments

Post Your Comments

Your Name:

Your Email ID :
Comments :
URL
  =* Enter SUM

Tutorials,Examples,Questions and Answer

R4R
R4R
R4R
R4R
R4R
R4R
R4R
R4R