using System; class Program { public static void Main() { int a,i; Console.WriteLine("Multiples of 17 are: "); for (i = 1; i < 100; i++) { a = i % 17; if (a == 0) { Console.WriteLine(i); } } Console.Read(); } }
Output
Lab Core | The Lab of MrNetTek
A blog about IT, technical solutions, and code.
using System; class Program { public static void Main() { int a,i; Console.WriteLine("Multiples of 17 are: "); for (i = 1; i < 100; i++) { a = i % 17; if (a == 0) { Console.WriteLine(i); } } Console.Read(); } }
Output