wap that asks you to inpit your name as well as marks in any five subjects and store them ib their different variable calculate the total marks and print them as well as your name( plz fast )
Attachments:
Answers
Answered by
1
Answer:
Class Marks
{
public static void main[string args] throws IOException
{
BufferedReaderobj=new BufferedReader( new InputStreamReader(system.in));
string STR;
System.out.println("enter the name")
str =obj.readLine();
int a,b,c,d,e,f;
System.out.println("enter the numbers in 5 subject");
a =Integer.parseInt(obj.readLine());
b =Integer.parseInt(obj.readLine());
c =Integer.parseInt(obj.readLine());
d=Integer.parseInt(obj.readLine());
e=Integer.parseInt(obj.readLine());
f= a+b+c+d+e;
System.out.println("name:-"+str);
System.out.println("total marks =;+f);
}
}
// end of program
Similar questions
Math,
1 month ago
Science,
1 month ago
Physics,
1 month ago
Math,
2 months ago
Social Sciences,
2 months ago
Environmental Sciences,
10 months ago
Computer Science,
10 months ago