Write a program about percent of five subject | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Write a program about percent of five subject

English 21 Hindi 24 Geography 25 history 30 March 23

21st Nov 2017, 4:05 PM
Balendray Gautam
Balendray Gautam - avatar
1 Answer
+ 1
public class Percentage { public static void main(String[] args) { int Eng = 21,Hnd = 24,Geo = 25,Hst = 30,Math = 23; float per = (Eng + Hnd + Geo + Hst + Math)/5; System.out.println(per); } }
21st Nov 2017, 4:34 PM
RZK 022
RZK 022 - avatar