Computer Science, asked by creatingmyselfrn, 8 months ago

find the sum of (1^1) +(2^2) +( 3^3).....(n^n) in java using math function.
(all inputs using Scanner Class)

Answers

Answered by Gaganpreetramgharia
1

import java . util . Scanner;

class Series

{

   public static void main ( )

   {

      int i;

      Scanner ob =  new Scanner (System.in);

      for (i = 1 ; i < = n ; i + + )

      {

      System.out.printn ( i * i );

     }

}

HOPE IT'S HELPFUL ............................

MARK AS BRAINLIST...................................

Similar questions