Everything runs fine. However, I need the loop to end contingent upon how many numbers the user enters in the first question.
using System;
namespace Looping
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("How many numbers will you provide?");
int numbersProvide = Convert.ToInt32(Console.ReadLine());
int i = 0;
while (i <= numbersProvide)
{
Console.WriteLine("Please enter number:");
int firstNum = Convert.ToInt32(Console.ReadLine());
int j;
int sum = 0;
double addDiv;
for (j = 1; j <= 25; j++)
{
if (firstNum % j == 0)
{
addDiv = firstNum / j;
Console.WriteLine(firstNum + " is divisible by " + j + "(" + addDiv + ")");
sum += j;
}
}
Console.WriteLine("The sum of the quotient is: " + sum);
}
Console.ReadKey();
}
}
}