Skip to content

Commit c0c1bb3

Browse files
authored
Add files via upload
1 parent 34e9af4 commit c0c1bb3

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

Compiler Project using Flex Bison/input.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ root:
7878
print(a);
7979

8080
#/////////////// ARRAY with intialization \\\\\\\\\\\\\\\
81-
ARRAY int N (7) = 0;
81+
ARRAY int N (7) = 1;
8282

8383
#////////////// FUNCTIONS \\\\\\\\\\\\\\\\\
8484
OE(8);
@@ -93,7 +93,7 @@ root:
9393

9494
FIBSERIES(11);
9595

96-
FACTORS(40);
96+
FACTORS(20);
9797

9898

99-
}
99+
}

Compiler Project using Flex Bison/lex.yy.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1760,4 +1760,4 @@ int main()
17601760
yyparse();
17611761

17621762
return 0;
1763-
}
1763+
}

Compiler Project using Flex Bison/main.l

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@ int main()
7676
yyparse();
7777

7878
return 0;
79-
}
79+
}

Compiler Project using Flex Bison/output.txt

+9-9
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,13 @@ Printing the result : 6
134134
#/////////////// ARRAY with intialization \\\\\\\\\\\\\\\
135135
ARRAY Declaration
136136
ArraySize : 7
137-
ARRAY's index = 0, intializing value = 0
138-
ARRAY's index = 1, intializing value = 0
139-
ARRAY's index = 2, intializing value = 0
140-
ARRAY's index = 3, intializing value = 0
141-
ARRAY's index = 4, intializing value = 0
142-
ARRAY's index = 5, intializing value = 0
143-
ARRAY's index = 6, intializing value = 0
137+
ARRAY's index = 0, intializing value = 1
138+
ARRAY's index = 1, intializing value = 1
139+
ARRAY's index = 2, intializing value = 1
140+
ARRAY's index = 3, intializing value = 1
141+
ARRAY's index = 4, intializing value = 1
142+
ARRAY's index = 5, intializing value = 1
143+
ARRAY's index = 6, intializing value = 1
144144
#////////////// FUNCTIONS \\\\\\\\\\\\\\\\\
145145
***Odd Even Number checking...
146146
8 is an Even Number
@@ -184,7 +184,7 @@ value of expression: 0
184184
Fibonacci Series: 0 1 1 2 3 5 8 13 21 34 55 89 144
185185

186186

187-
***Finding the FACTORS of number 40...
188-
Factors of 40 are: 1 2 4 5 8 10 20 40
187+
***Finding the FACTORS of number 20...
188+
Factors of 20 are: 1 2 4 5 10 20
189189

190190
Main Function Ends
80.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)