import java.util.*; class Percentage{ public static void main(String args[]){ int m1=Integer.parseInt(args[0]); int m2=Integer.parseInt(args[1]); int m3=Integer.parseInt(args[2]); int m4=Integer.parseInt(args[3]); int m5=Integer.parseInt(args[4]); int m6=Integer.parseInt(args[5]); int total = m1+m2+m3+m4+m5+m6; double percentage=(double)total/6; System.out.println("Percentage =" +percentage); } }
-
Notifications
You must be signed in to change notification settings - Fork 0
jashshah127/Java
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
1
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published