Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

OH MY GOD

Name: Anonymous 2007-01-31 8:08

WTF rly man WTF im posting in JAVA class and i wana know WTF

Name: Anonymous 2007-01-31 8:46 (sage)

Sage for Java

Name: Anonymous 2007-01-31 8:51

Java. Enterprise.

Name: Anonymous 2007-01-31 9:36

no rly i am!

Name: Anonymous 2007-01-31 9:37

public class rainfall

{

public static void main(String args[])
{

char choice;

do
{
System.out.println("to see rain fall for sunderland press a");
System.out.println("to see rain fall for London press b");
System.out.println("to quit press q");
choice = EasyIn.getChar();

float rainfall=0, total0;
float rainfall[]= new float[13];
float average=0;

for(int i=0; i<13;i++)
{
System.out.println("enter rainfall for Sunderland");
rainfall = Easyin.getFloat();
rainfall[i]=rainfall;
total=total+rainfall;
}

average=total/13;
System.out.println("the rain fall levels you enterd were as follows");
for(int i=0;i<5;i++);
System.out.println(rainfall[i]+"");
System.out.println("the average rainfall is"+average);

}
}
while(choice!='Q');
}







teh code i made and it teh sux

Don't change these.
Name: Email:
Entire Thread Thread List