اعراب جملة كن مخلصا لوطنك
كن: فعل امر ناسخ مرفوع بالسكون
مخلصا: خبر كن منصوب بالفتحه
اللام: حرف جر
وطن: اسم مجرور بالكسرة
الكاف: ضمير مبني في محل جر مضاف اليه
The sentence is an Arabic grammar analysis with the following breakdown: “كن” is the imperative verb in the active voice. “مخلصا” is the predicate, in the accusative case. “لوطن” is a noun in the genitive case and “ككن” is a pronoun referring back to the genitive noun. Overall, it is advising someone to be loyal to their country.