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?
2 years, 6 months ago
I can. I hope i am right. P.S reply. I am using escape sequences instead of multiple print statements.
//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.");
Log in to reply