#include <stdio.h>
#include <string.h>
int main(void) {
char email[50]={"Teste@hotmail.com"};
int arroba,ponto,passa,maior,c_P,c_S,i;
for (i = 0; i < tam; i++) {
if(i > 3){
maior=1;
}
if(email[i] == '@'){
arroba=1;
}
if(arroba == 1 && email[i] >= 3){
c_P=1;
}
if(email[i]=='.'){
ponto=1;
}
if(ponto==1 && email[i] >=2){
c_S=1;
}
if(maior==1 && arroba == 1 && c_P==1 && c_S ==1){
passa=1;
}else{
passa=0;
}
}
if(passa==1){
}else{
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCmludCBtYWluKHZvaWQpIHsKCmNoYXIgZW1haWxbNTBdPXsiVGVzdGVAaG90bWFpbC5jb20ifTsKaW50IGFycm9iYSxwb250byxwYXNzYSxtYWlvcixjX1AsY19TLGk7CmludCB0YW09c3RybGVuKGVtYWlsKTsKCiBmb3IgKGkgPSAwOyBpIDwgdGFtOyBpKyspIHsKICAgaWYoaSA+IDMpeyAgIAogICAgIG1haW9yPTE7ICAgCiAgIH0KICAgaWYoZW1haWxbaV0gPT0gJ0AnKXsKICAgIGFycm9iYT0xOwoKICAgfQogICBpZihhcnJvYmEgPT0gMSAmJiAgZW1haWxbaV0gPj0gMyl7CiAgICBjX1A9MTsKICAgfQogICBpZihlbWFpbFtpXT09Jy4nKXsKICAgICAgICBwb250bz0xOwogICB9CiAgICAgICAKICBpZihwb250bz09MSAmJiBlbWFpbFtpXSA+PTIpewogICAgICAgIGNfUz0xOwogICB9CgppZihtYWlvcj09MSAmJiBhcnJvYmEgPT0gMSAmJiBjX1A9PTEgJiYgY19TID09MSl7CiAgICBwYXNzYT0xOwp9ZWxzZXsKICAgIHBhc3NhPTA7Cn0KCgp9ICAKCmlmKHBhc3NhPT0xKXsKICAgIHByaW50ZigiVmFsaWRvIik7Cn1lbHNlewogICAgcHJpbnRmKCJJbnZhbGlkbyIpOwp9CgoKCn0KCg==