Page 1 of 1

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

Posted: Thu May 05, 2022 1:32 pm
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