-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexp2a.java
More file actions
19 lines (19 loc) · 769 Bytes
/
exp2a.java
File metadata and controls
19 lines (19 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class buffer
{
public static void main(String[] arg) throws IOException{
InputStreamReader r = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(r);
System.out.println("\n Name : SAACHI KOAKTE \n Batch : S1-3 \n Roll no. : 50 ");
System.out.println("Enter the marks for PHYSICS : ");
int PHYSICS = Integer.parseInt(br.readLine());
System.out.println("Enter the marks for CHEMISTRY : ");
float CHEMISTRY = Float.parseFloat(br.readLine());
System.out.println("Enter the marks for MATHS : ");
int MATHS = Integer.parseInt(br.readLine());
float Average= (PHYSICS+MATHS+CHEMISTRY)/3;
System.out.println("Average is = " +Average);
}
}