My code is this can anyone correct this or any other solution to this problem. This is what I've got so far but it doesn't seem to be working:
  int i=0,f=0;
    string n = Console.ReadLine();
    for (i = 0; i < n.Length; i++)          
        if(n[i]=='@' || n[i] == '.')              
            f = f + 1;               
    if(f==2){
console.writeline('correct')
}
    else{
console.writeline('Incorrect') 
 
     
    