Computer Science, asked by satyamahesh, 6 months ago

Write a C program to store marks of 5 students in 3 subjects and display its total row wise using two

dimensional array.​

Answers

Answered by kamalrajatjoshi94
1

Answer:

import java.io.*;

Class marks

{

public static void main(String args[])throws IOException

{

InputStreamReader read=newInputStreamReader(System.in);

BufferedReader in=new BufferedReader(read);

int m1,m2,m3,m4,m5,m6,m7,m8,m9;

String a,b,c,d,e;

System.out.println("Enter the name of student");

a=in.readLine();

b=in.readLine();

c=in.readLine();

d=in.readLine();

e=in.readLine();

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

m1=Integer.parseInt(in.readLine());

m2=Integer.parseInt(in.readLine());

m3=Integer.parseInt(in.readLine());

m4=Integer.parseInt(in.readLine());

m5=Integer.parseInt(in.readLine());

m6=Integer.parseInt(in.readLine());

m7=Integer.parseInt(in.readLine());

m8=Integer.parseInt(in.readLine());

m9=Integer.parseInt(in.readLine());

System.out.println("Marks of 1st student in Hindi,English and Maths="+m1","+m2","+m3);

System.out.println("Marks of 2nd student in Hindi,English and Maths="+m4","+m5","+m6);

System.out.println("Marks of 3rd student in Hindi,English and Maths="+m7","+m8","+m9);

}

}

Similar questions