forked from codehouseindia/Java-Programs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExamPersentage.java
More file actions
24 lines (21 loc) · 791 Bytes
/
ExamPersentage.java
File metadata and controls
24 lines (21 loc) · 791 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
// https://www.facebook.com/anushka.saine.735/posts/137136021429328
// subscribed by status gram
package com.company;
import java.util.Scanner;
public class ExamPersentage {
public static void main(String[] args) {
Scanner mr=new Scanner(System.in);
System.out.println("Enter your 1st subject marks");
float a=mr.nextFloat();
System.out.println("Enter your 2nd subject marks");
float b=mr.nextFloat();
System.out.println("Enter your 3rd subject marks");
float c=mr.nextFloat();
System.out.println("Enter your subject marks");
float d=mr.nextFloat();
System.out.println("Enter your 5th subject marks");
float e=mr.nextFloat();
float sum=a+b+c+d+e;
float per1=sum/500*100;
}
}