Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ π -¹ ² ³ °

You are not logged in.

- Topics: Active | Unanswered

**prathima****Member**- Registered: 2013-09-19
- Posts: 33

yes...

Offline

**bobbym****bumpkin**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 108,547

Yes, to what?

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.**** Always satisfy the Prime Directive of getting the right answer above all else.**

Offline

**gAr****Member**- Registered: 2011-01-09
- Posts: 3,479

What is pg?

She means Post Graduation.

"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense" - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

**bobbym****bumpkin**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 108,547

Hi prathima;

Okay, but you do not know anything at all about programming in any language. This is obvious.

I can write the program for you. You might pass if your teacher is very stupid. Also you would learn nothing.

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.**** Always satisfy the Prime Directive of getting the right answer above all else.**

Offline

**prathima****Member**- Registered: 2013-09-19
- Posts: 33

for above vector to get 1st element A(1,1)

Offline

**bobbym****bumpkin**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 108,547

And the 10th element?

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.**** Always satisfy the Prime Directive of getting the right answer above all else.**

Offline

**prathima****Member**- Registered: 2013-09-19
- Posts: 33

there are only 3 elements in above example

Offline

**bobbym****bumpkin**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 108,547

If I pseudocode it for you it will not run right away. You will have to adjust syntax, headers, variable types...

If you can not do that then you will be unable to make it work.

0) Make an array = [1,2,3,4,5,6,7,8....] as long as you need. Call it A.

1) x1 = 1;

2) x2 = 1;

3) h = x2;

4) x2 = x1 + x2;

5)A[1,x2]=0. I assume that is the correct format of the array.

5) x1 = h;

6) Goto 3

When you have finished going through the list just print out A.

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.**** Always satisfy the Prime Directive of getting the right answer above all else.**

Offline

**prathima****Member**- Registered: 2013-09-19
- Posts: 33

thank u

Offline

**bobbym****bumpkin**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 108,547

Your welcome.

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.**** Always satisfy the Prime Directive of getting the right answer above all else.**

Offline