Hello
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class WholeNumbersFor
{
private int numOfInPut;
private int sum;
public void start();
WriteProgramInfo();
ReadInPut();
SumNumbers();
ShowResults();
}
private void ReadInPut()
{
Console.Write ("Number of Values to sum?");
NumOfInPut = int.Parse(console.Readkey());
console.Writeline();
}
private void WriteProgramInfo()
{
console.Writeline("\n\n ++++++ Summation of whole numbers ++++++");
console.Writeline();
}
private void SumNumbers()
{
int index;
int Sum = 0;
for (index = 0; index < NumOfInPut; index++)
{
}
private void ShowResults();
{
}
}
If you put in 9 in to Number of Values to sum? then it going to come up like 9 lines that say for example value no 1 and so on to no 9 that you can enter your number you want in to it.
I don't understand how i'm going to put it in. i know how to do it if you know the value of it but now it is 0 so i dont know how i can make it