Question: -write a C# program -create a 1-d array. Its data type is double. It has 8 elements. initialize this array by 8 double numbers -

 -write a C# program -create a 1-d array. Its data type

-write a C# program -create a 1-d array. Its data type is double. It has 8 elements. initialize this array by 8 double numbers - use a for loop to convert each element to a value, the data type of which is int. - print this new value -write a C# program create a 1-d array. Its data type is integer. It has 10 elements. initialize this array by 10 integer numbers. Five elements of the array are positive, and others are negative. - use a while loop to manipulate the array as below. - If the value of an element is positive, the value is doubled. Otherwise, the value is incremented by 3. print the new value of each element

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!