ACM (TJU) : 1574


//package volume_VI;

import java.util.Scanner;

public class Main {

/**
* @param args
*/
public static void main(String[] args) {

Scanner input = new Scanner (System.in);

float a [] = new float [12];
double sum = 0;

for ( int i = 0; i < 12; i++ ) { a [i] = input.nextFloat(); sum += a [i]; } sum /= 12; System.out.printf ("$%.2f\n", sum); } } [/sourcecode]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s