write a Java program to find the sum and average of 5 subjects marks of a student
Answers
Answered by
6
Answer:
import java.util.*;
public class SumForDigit
{
public static void main(int n)
{
Scanner sc=new Scanner(System.in);
int i,n,s=0;
double avg=0.0;
for(i=1;i<=5;i++)
{
n=sc.nextInt(); //input marks
s+=n;
}
avg=sum/5;
System.out.println("Sum="+s+" Average:"+avg);
}
}
Explanation:
Answered by
0
Answer:
bolo ICSE ISC it's a seee you have any other questions I have a time to talk through this tutut
Explanation:
higher rey y yt channel ID to your efforts thanks mam please I need the man of the end of Stanford University of Stanford CA and what it takes to get to the end the end the end it
Similar questions