Computer Science, asked by sukritidhungana96, 1 month ago

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 omtiwari900
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