Hello Guyz , counld anyone can help me? Thanks :-)
The result output should be like this :
The output should be like this:
ENTER VALUE NUMBER : 2
VALUE NUMBER : 1
VALUE NUMBER : 2
The Sum total is : 3
Hello Guyz , counld anyone can help me? Thanks :-)
The result output should be like this :
The output should be like this:
ENTER VALUE NUMBER : 2
VALUE NUMBER : 1
VALUE NUMBER : 2
The Sum total is : 3
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sachin SinghPosted Sep 16, 2021, 2:18 PM
Ahmet TahaPosted Sep 16, 2021, 1:48 PM
//int[] storage = new int[0];
int storage = Convert.ToInt32(Console.ReadLine());
for (int x = 1; x <= storage; x++)
{
int c = 0;
Console.Write("Value number:\t" + x);
c = (x + storage) / x;
Console.WriteLine("The Sum total is :\t" + c);
}
Console.ReadKey();