Computer Science, asked by ganeshpoojary523, 1 month ago

find the sum and the average marks scored by the student in science subject . (write a program on this)​

Answers

Answered by Anonymous
102

Answer:

import java.util.*;

{

public static void main (String ar [])

{

Scanner Sc=new Scanner (System.in);

int M1,M2,M3;

double avg=0.0;

System.out.println("Enter 3 sub marks");

M1=Sc.nextInt();

M2=Sc.nextInt();

M3=Sc.nextInt();

avg=(M1+M2+M3)/3

System.out.println(avg);

}

}

ᎻᎾᏢᎬ ᎨᎿ ᎻᎬᏝᏢᏕ ᎽᎾᏬ

Answered by niha123448
1

Explanation:

Answer:

import java.util.*;

{

public static void main (String ar [])

{

Scanner Sc=new Scanner (System.in);

int M1,M2,M3;

double avg=0.0;

System.out.println("Enter 3 sub marks");

M1=Sc.nextInt();

M2=Sc.nextInt();

M3=Sc.nextInt();

avg=(M1+M2+M3)/3

System.out.println(avg);

}

}

ᎻᎾᏢᎬ ᎨᎿ ᎻᎬᏝᏢᏕ ᎽᎾᏬ!!

Similar questions