C# Program to Print all the Multiples of 13 which are Less than 100.
Here is source code of the C# Program to Print all the Multiples of 13 which are Less than 100. The C# program is successfully compiled and executed with Microsoft Visual Studio. The program output is also shown below.
C# Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp18 { class Program { static void Main(string[] args) { int a, i; Console.WriteLine("Multiples of 13 are : "); for (i = 1; i < 100; i++) { a = i % 13; if (a == 0) { Console.WriteLine(i); } } Console.ReadKey(); } } } |
Output:
Multiples of 13 are :
13
26
39
52
65
78
91