Skip to content

Instantly share code, notes, and snippets.

@ashga
Created October 16, 2012 17:32
Show Gist options
  • Save ashga/3900749 to your computer and use it in GitHub Desktop.
Save ashga/3900749 to your computer and use it in GitHub Desktop.
Question 1 BrightSolid
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BrightSolid
{
class Program
{
static void Main(string[] args)
{
for (int i = 1; i < 101; i++ )
{
string output = "";
if (i / 15 * 15 == i) output = "BrightSolid";
else if (i / 3 * 3 == i) output = "Bright";
else if (i / 5 * 5 == i) output = "Solid";
else output = i.ToString();
Console.WriteLine(output);
}
Console.ReadLine(); // written to stop window from closing once code executes
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment