Contact: aviboots(AT)netvision.net.il
41,163 questions
53,655 answers
573 users
using System; public class DividersOfANumber { public static void Main(string[] args) { int n = 70; for (int i = 1; i <= n; i++) { if (n % i == 0) { Console.Write("{0, 3}", i); } } } } /* run: 1 2 5 7 10 14 35 70 */