using System;
public class Program
{
public static void recurse(int a,int b)
//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
if (a<b)
if (a % 3 == 0 && a% 5 == 0)
Console.WriteLine("FizzBuzz");
}
else if (a % 3 == 0)
Console.WriteLine("Fizz");
else if (a % 5 == 0)
Console.WriteLine("Buzz");
else
Console.WriteLine(a);
a++; // = a+1;
recurse(a,b);
public static void Main()
recurse(1,100);