-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGrade.java
More file actions
30 lines (26 loc) · 917 Bytes
/
Grade.java
File metadata and controls
30 lines (26 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//public package Project1;
// import java.util.Scanner;
// public class Grade {
// public static void main(String[] args) {
// Scanner scan = new Scanner(System.in);
// System.out.print("Enter Number of subjects : ");
// int numOfSub = scan.nextInt();
// int eachsub;
// int totalMarks=0;
// for(int i=1; i<=numOfSub; i++){
// System.out.print("Enter each subject number : ");
// eachsub = scan.nextInt();
// if(eachsub < 0 || eachsub > 100){
// System.out.println("Invailid");
// }
// totalMarks = totalMarks + eachsub;
// }
// int Avg = totalMarks/numOfSub;
// if(totalMarks >= 300){
// System.out.println("PASS");
// }
// else{
// System.out.println("FAIL");
// }
// }
// }