Professional Documents
Culture Documents
TR
TR
in);
int noOfMonths = scanner.nextInt();
double billElectricity = 0;
double billWater=0;
double billInternet=0;
double billOther=0;
double billTotal=0;
double averageOfAll=0;
billElectricity=billElectricity+electricity;
billWater=billWater+water;
billInternet=billInternet+internet;
billOther=billOther+other;
double average=billElectricity+billWater+billInternet+billOther;
billTotal=billTotal+average;
averageOfAll=billTotal/noOfMonths;