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,
23 days ago
Hindi,
23 days ago
English,
23 days ago
Math,
1 month ago
Social Sciences,
1 month ago
Environmental Sciences,
8 months ago
Computer Science,
8 months ago