Math, asked by sunnyvenkat7799, 1 year ago

if the marks of robert in three subjects are 78,45 and 62 respectively (each out of 100 ), write a program to calculate his total marks and percentage marks.

Answers

Answered by littyissacpe8b60
2

total marks = 78 + 45 + 62 = 185

Percentage of total marks = 185/300 X 100 = 61.67% (300 = 100 x 3subjects)

Answered by prishagujar13
0

Answer:

Step-by-step explanation:

import java.util.*;

public class Scanner

{

public static void main(String[ ]  args) {

    Scanner in= new Scanner(System.in);

 System.out.println("Enter the marks");

 double a=in.next();

 double b=in.next();

 double c=in.next();

 double total= a+b+c;

 double Percent = total/300 *100;

 System.out.println("Total marks =" + total);

 System.out.println("Percentage="+Percent);

}

}

Similar questions