Answer to Question #60244 in Java | JSP | JSF for dhiraj
write a program in java to display your name and average marks obtained in physics ,chemistry, biology.
1
2016-06-03T10:13:02-0400
class Main{
public static void main(String args[]){
String name = "John Snow";
int physics = 98, chemistry = 94, biology = 86;
System.out.println(name);
System.out.println((physics + chemistry + biology) / 3);
}
}
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
JavaJSPJSF
Comments
Leave a comment