C# How To Program: Working with C# Random Numbers, C# Arrays and C# Loops: Part 2

N will be input by user. And there will be two arrays with N size, one is for positive numbers and the other one is for negative numbers.

And all numbers in both arrays will be 0 as default. And N numbers will be guessed by your program (you can use Random()).

Those guessing numbers will be between -100 and 100. If one number guessed and if this number is positive,

it will be stored to positive number array and if this number is negative, it will be stored to negative number array.

If the guessed number is zero then it will guess again.

After N numbers are guessed your program will find position sum of numbers. Position sum of numbers are calculated

by adding two number in the same position of two arrays.

Output will be to show the positive and negative arrays and position number array.

EXAMPLE:

Input:

N=5

Let us say Random numbers example: -2,3, 5, -5,-2

Output

Positive numbers(5 of them): 3, 5, 0, 0, 0

Negative numbers (5 of them): -2, -5, -2, 0, 0

Position sum of numbers: 1,0,-2

DOWNLOAD SOURCE FILES: RandomNumbersCalculations

## Comments