Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

and the flow chart Objective: by the end of the experiment the student should be able to use for loops with arrays in a C#based

image text in transcribed
and the flow chart
Objective: by the end of the experiment the student should be able to use for loops with arrays in a C#based program Task: 1. Write a simple program based on the use of FOR LOOPS and Arrays to: 1. Ask the user to enter four numbers (use a for loop for entering the numbers and save them in a one dimensional array ID) 2. Your code should output the square of each number (use another for loop for printing the output) II. Repeat task I using two dimensional array 2D: save the numbers in one column and the square of it in the second column. Example: Tf the user enters 2, 3, 4, and 5. the output should be as the following: The square of your inputs: 2.2=4 3*3=9 404-16 5.5= 25 Code and Output

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions

Question

6. Testing equipment that will be used in instruction.

Answered: 1 week ago