Skip to content

Commit

Permalink
Works but test won't read it
Browse files Browse the repository at this point in the history
  • Loading branch information
zerolinux5 committed Aug 3, 2014
1 parent 4576c8f commit bcb5c4f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Binary file modified a.out
Binary file not shown.
10 changes: 9 additions & 1 deletion bdayGift.cpp
Expand Up @@ -6,10 +6,18 @@ int main()
{
int numTimes;
cin >> numTimes;
double result = 0;

while(numTimes--){

double newNum;
cin >> newNum;
result += (0.5 * newNum);
}

cout.precision(1);
cout << fixed;

cout << result << endl;

return 1;
}

0 comments on commit bcb5c4f

Please sign in to comment.