Lex Program to Identify and Count Positive and Negative Numbers
Given some numbers, task is to identify the positive and negative numbers and print the count of negative and positive numbers.
Prerequisite: Flex (Fast lexical Analyzer Generator)
Input : -52 Output : negative number=-52 number of positive numbers = 0 number of negative numbers = 1 Input : 63 Output : positive number = 63 number of positive numbers = 0 number of negative numbers = 1
Below is the implementation program:
My Personal Notes arrow_drop_up
Please Login to comment...