Write a program to remove the Left Recursion from a given grammar.
#include<stdio.h> #include<string.h> #define SIZE 10 int main () { char non_terminal; char beta,alpha; int num; int i; char production[10][SIZE]; int index=3; /* starting of the string following "->" */ printf("Enter Number of Production : "); scanf("%d",&num); printf("Enter the grammar as E->E-A :\n"); for(i=0;i<num;i++){ scanf("%s",production[i]); } for(i=0;i<num;i++){ printf("\nGRAMMAR : : : %s",production[i]); ...