Return to Snippet

Revision: 44291
at April 9, 2011 05:57 by rwczippy


Initial Code
<div>
	@{

		var end = 100;
		for (int i = 1; i < end; i++)
		{
		<span>@i</span>
			if (i % 5 == 0 && i % 3 == 0)
			{
		<span>fizzbuzz</span>
			}
			else if (i % 3 == 0)
			{
		<span>fizz</span>
			}
			else if (i % 5 == 0)
			{
		<span>buzz</span>
			}
			else
			{
		<span>@i</span>	
			}
		<br />
		}
	}
</div>

Initial URL

                                

Initial Description
my take on fizzbuzz written in C#.Net - Razor

Initial Title
fizzbuzz in Razor

Initial Tags
c#

Initial Language
C#