Question
In c#
1. (30) Array You are give an array: int [I a new int [100] int N 0; Assignment public void assign1248 0 /assign 1, 2, 4, 8, .. 1024 to the array Assignment public void assign149 0 assign 1, 4, 9, 16, .. 100 to the array
0 0
Add a comment Improve this question Transcribed image text
Answer #1

public void assign12480) N 1 // looping till 1024 for(int 1-0 ; N(#1024; 1++, N+-N) a[i] N public void assign149() // looping for 11 times from 0 through 10 for( int ise; i(se; i++)

public void assign1248()

{

N = 1;

// looping till 1024

for(int i=0; N<=1024; i++, N+=N)

a[i] = N;

}

public void assign149()

{

// looping for 11 times from 0 through 10

for(int i=0; i<=10; i++)

a[i] = i*i;

}

Add a comment
Know the answer?
Add Answer to:
In c# 1. (30) Array You are give an array: int [I a new int [100]...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT