Separation of email sections
Write a program that receives an email address and separates the various sections as follows and prints on the output
Example:
email: info@amirhn.ir
info
amirhn.ir
Example:
email: username@gmail.com
username
gmail.com