C# Project Euler
I’m currently developing software in C# using the AdWords API to create dynamic ad copy. My first project is completed, and i’m happy with it. It controls a portfolio of flights information, keeping ads directing to the cheapest flights and the ad copy matching flight prices.Anyway.. I’ve decided to pratice my C# by doing the 200+ problems of Project Euler. So here’s problem 1, in C#Project Euler Problem 1[code] int finalval = 0; for (int i = 0; i != 1000; i++) if (i % 5 == 0 || i % 3 == 0) finalval += i;[/code] Fairly simple. Roll on the next..
Leave a Reply