Computer Science, asked by saniaseraj092, 11 months ago

write a program in java to print the series:-0 6 24 60 120....till n number of terms​

Answers

Answered by sailorking
2

Answer:

import java . util . *;

class subc

   {

       public static void main(String args[])

       {

           Scanner sc = new Scanner(System . in);

           System . out . println("Enter an integer");

           int a =  sc . nextInt();

           System . out . println("0");

           System . out . println("6");

            System . out . println("24");

           int b = 6;

           int c = 24;

           a = a-3;

           while(a! = 0)

           {

               System . out . println(b*10);

               System . out . println(c*5);

               b = b*10;

               c = c*5;

               a--;

          }

      }

   }

Answered by urajathi1982
0

Explanation:

import java .io.*;

class samole

Similar questions