Computer Science, asked by arijitdeb59gmailcom, 1 year ago

how to print 3,6,9,12,15 in java with no comma at last, exactly as given.​

Answers

Answered by dipayanghosh185
2

Answer:

import java.util.Scanner;

class NaturalNumbers

{

   public static void main(String args[])

   {        

 Scanner s = new Scanner(System.in);

       System.out.println("3,6,9,12,15");

   }

}

HOPE YOU LIKE IT..

THEN PLEASE MAKE ME BRAINLIST OR FOLLOW ME...

Explanation:

Similar questions