Skip to content

Instantly share code, notes, and snippets.

@monica85rodrigues
Created December 31, 2016 01:27
Show Gist options
  • Save monica85rodrigues/676fbb3d3179d6ae1a61110c53e51c98 to your computer and use it in GitHub Desktop.
Save monica85rodrigues/676fbb3d3179d6ae1a61110c53e51c98 to your computer and use it in GitHub Desktop.
List<decimal> prices = new List<decimal>() { 2.4m, 5.6m, 6.40m };
decimal total = 0;
foreach(var price in prices)
{
total += i;
}
return total;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment