+ 1

Hi, i neeed help whit this excersice: Realize the next excersice with java (netbeans) .... i do not know how to do it :(

1^N +2^N-1 + 3^N-2 +...+ N^1

13th Jan 2022, 1:54 PM
Cristhian Jefferson
Cristhian Jefferson - avatar
2 Answers
+ 1
You can use looping from 1 to N and use Math.pow(a, b) ; to find a^b.
13th Jan 2022, 2:07 PM
Jayakrishna šŸ‡®šŸ‡³
+ 1
Is the value of N read from the keyboard? Or is a series or a polinom in mathematics? For input the N from a keyboard, you can make a program in any programming language. If it is about a polinom in algebra, you need a special programming language like Matlab, Mathematica, Mapple, R etc. or you should be more careful at school šŸ˜‰
13th Jan 2022, 2:49 PM
Romeo Cojocaru
Romeo Cojocaru - avatar