Skip to content

Instantly share code, notes, and snippets.

@Manasseh919
Manasseh919 / Fizz Buzz.cs
Created January 4, 2021 15:11
Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz".
using System;
namespace Fizz_Buzz
{
class Program
{
static void Main(string[] args)
{
int n = 100;
for(int i = 1;i<=n;i++)