You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Write a program to calculate the percentage of a given student in the CBSE board exam. His marks from 5 subjects must be taken as input from the keyboard. (Marks are out of 100)
3
+
4
+
## Code Solution:
5
+
```
6
+
package com.company;
7
+
import java.util.Scanner;
8
+
9
+
public class cwh_11_ex1_sol {
10
+
11
+
12
+
public static void main(String[] args) {
13
+
14
+
Scanner scan = new Scanner(System.in);
15
+
System.out.println("Enter your Physics marks : ");
16
+
int physics = scan.nextInt();
17
+
System.out.println("Enter your English marks : ");
18
+
int English = scan.nextInt();
19
+
System.out.println("Enter your Chemistry marks : ");
20
+
int chemistry = scan.nextInt();
21
+
System.out.println("Enter your Mathematics marks : ");
22
+
int mathematics = scan.nextInt();
23
+
System.out.println("Enter your Computer Science marks : ");
0 commit comments