Your missionWrite a program that scans a string argument and prints the first lowercase n it finds.See it in action./find_n "npm said no"n./find_n "skip this"(empty result)./find_nwrong number of argumentsYour checklistAccept exactly one argument.Scan the string from left to right and locate the first occurrence of the lowercase letter n.Print that character followed by a newline.If the string contains no lowercase n, print only a newline.If the program does not receive exactly one argument (argc must be 2), print wrong number of arguments followed by a newline and exit with status 0.ConstraintsExpected filefind_n.cAllowed functionswrite
Your missionWrite a program that scans a string argument and prints the first lowercase n it finds.See it in action./find_n "npm said no"n./find_n "skip this"(empty result)./find_nwrong number of argumentsYour checklistAccept exactly one argument.Scan the string from left to right and locate the first occurrence of the lowercase letter n.Print that character followed by a newline.If the string contains no lowercase n, print only a newline.If the program does not receive exactly one argument (argc must be 2), print wrong number of arguments followed by a newline and exit with status 0.ConstraintsExpected filefind_n.cAllowed functionswrite