Given the fact that any email consists of three parts: 1) user 2) domain name 3) domain type for example: [email protected]

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Given the fact that any email consists of three parts: 1) user 2) domain name 3) domain type for example: [email protected]

Post by answerhappygod »

Given the fact that any email consists of three parts:
1) user
2) domain name
3) domain type
for example: [email protected], has the user as mjabi, domain name as najah, and the domain type as edu.
write a c program that reads your email and prints the user, domain name and domain type. for example if the input is: [email protected]
the output is:
user:102352667
domain:stu.najah
domain type:edu
and if the input is: [email protected], the output is
user:ahmad
domain:gmail
domain type:com
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply