Lex is a computer program that generates lexical analyzers and was written by Mike Lesk and Eric Schmidt. Lex reads an input stream specifying the lexical analyzer and outputs source code implementing the lexer in the C programming language.
Description: Perfect number, a positive integer that is equal to the sum of its proper divisors, for example: 6 = 1+2+3.
Input: 3 Output: 3 is not perfect number Input: 6 Output: 6 is perfect number
Want to learn from the best curated videos and practice problems, check out the C Foundation Course for Basic to Advanced C.