
August 18th, 2012, 04:11 PM
|
|
Registered User
|
|
Join Date: Aug 2012
Posts: 1
Time spent in forums: 22 m 26 sec
Reputation Power: 0
|
|
|
Homework - Can someone help me with this code and its error? im java beginner.
i got some errors,,,
can yu spot me where i made mistake,,!
the java coding is
import java.util.Scanner;
class student
{
public static void main(String a[])
{
int m1,m2,total;
float avg;
Scanner s=new Scanner(System.in);
System.out.println("enter ram mark");
m1=s.intnext();
m2=s.intnext();
total=(m1+m2);
float avg=((m1+m2)/2);
System.out.println("average mark of ram is" +avg+ "!");
}
}
thanq,,!
[IMG]imag[/IMG]
|