Skip to content

Commit a7d8825

Browse files
authored
to get percentage
1 parent 68c9cd1 commit a7d8825

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

ExamPersentage.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// https://www.facebook.com/anushka.saine.735/posts/137136021429328
2+
// subscribed by status gram
3+
package com.company;
4+
import java.util.Scanner;
5+
public class ExamPersentage {
6+
public static void main(String[] args) {
7+
Scanner mr=new Scanner(System.in);
8+
System.out.println("Enter your 1st subject marks");
9+
float a=mr.nextFloat();
10+
System.out.println("Enter your 2nd subject marks");
11+
float b=mr.nextFloat();
12+
System.out.println("Enter your 3rd subject marks");
13+
float c=mr.nextFloat();
14+
System.out.println("Enter your subject marks");
15+
float d=mr.nextFloat();
16+
System.out.println("Enter your 5th subject marks");
17+
float e=mr.nextFloat();
18+
float sum=a+b+c+d+e;
19+
float per1=sum/500*100;
20+
21+
22+
23+
}
24+
}

0 commit comments

Comments
 (0)