View Code of Problem 88

#include<iostream>
#include<math.h>
using namespace std;
int main(){
	double a[6],num=0;
	for(int i=0;i<6;i++){
		cin>>a[i];
	}
	num=a[5]+a[4]+a[3]+ceil(a[2]/4.0);
	cout<<num<<endl;
	return 0;
}

Double click to view unformatted code.


Back to problem 88