Waste less time on Facebook — follow Brilliant.

Write a Java Program

Can someone write a program in JAVA to display period and group of the element,the atomic number of which is entered by the user?

Note by Siddharth Singh
2 years, 6 months ago

No vote yet
1 vote


Sort by:

Top Newest

I can. I hope i am right. P.S reply. I am using escape sequences instead of multiple print statements. JAVA program:

//A program to display the period, group and atomic number of an element. Let it be Helium. public class Helium { public static void main(String args[]) { System.out.println("The element is helium.\nThe period is 1.\nGroup is 18.\nAtomic number is 2."); } }


Rohit Kanchi - 1 year, 10 months ago

Log in to reply


Problem Loading...

Note Loading...

Set Loading...