Computer Science, asked by PhaguniSahu, 9 months ago

write a program in Q Basic to find out the average of Ramesh marks in five subjects i.e 62,31,73,40,45​

Answers

Answered by GreatAniruddh7
21

Answer:

public class avg

{

public static void main (string args[]) throws IO Exception

{

InputStreamReader input = new InputStreamReader (System.in);

Bufferedreader br = new Bufferedreader (input);

for (int i=1 ; i<=5; i++)

System.out.prinyln(enter the Mark's of all five subject one by one);

int n = Integer.parseInt (br.readLine());

sum = sum + i;

avg=(sum/5);

System.out.println(average of five subject= avg);

}

}

IF YOU LIKE THE ANSWER PLEASE FOLLOW ME PLEASE MATE ALSO THANK MY ANSWER

Answered by thingany441
0

Answer:

SAME as above thank you

Similar questions