Code:
if ((chosenfile1==1)&&(chosenfile2==1)) statisticsof2textfilescompared ("The Sun","The Sun",".\\textfiles\\thesun.txt",".\\textfiles\\thesun.txt");
else
if ((chosenfile1==1)&&(chosenfile2==2)) statisticsof2textfilescompared ("The Sun","The Times",".\\textfiles\\thesun.txt",".\\textfiles\\thetimes.txt");
else
if ((chosenfile1==1)&&(chosenfile2==3)) statisticsof2textfilescompared ("The Sun","French Article",".\\textfiles\\thesun.txt",".\\textfiles\\frenchnewspaper.txt");
else
if ((chosenfile1==1)&&(chosenfile2==4)) statisticsof2textfilescompared ("The Sun","Romeo and Julliet",".\\textfiles\\thesun.txt",".\\textfiles\\shakespeare.txt");
else
if ((chosenfile1==1)&&(chosenfile2==5)) statisticsof2textfilescompared ("The Sun","Harry Potter",".\\textfiles\\thesun.txt",".\\textfiles\\childrensbook.txt");
else
if ((chosenfile1==2)&&(chosenfile2==1)) statisticsof2textfilescompared ("The Times","The Sun",".\\textfiles\\thetimes.txt",".\\textfiles\\thesun.txt");
else
if ((chosenfile1==2)&&(chosenfile2==2)) statisticsof2textfilescompared ("The Times","The Times",".\\textfiles\\thetimes.txt",".\\textfiles\\thetimes.txt");
else
if ((chosenfile1==2)&&(chosenfile2==3)) statisticsof2textfilescompared ("The Times","French Article",".\\textfiles\\thetimes.txt",".\\textfiles\\frenchnewspaper.txt");
else
if ((chosenfile1==2)&&(chosenfile2==4)) statisticsof2textfilescompared ("The Times","Romeo and Julliet",".\\textfiles\\thetimes.txt",".\\textfiles\\shakespeare.txt");
else
if ((chosenfile1==2)&&(chosenfile2==5)) statisticsof2textfilescompared ("The Times","Harry Potter",".\\textfiles\\thetimes.txt",".\\textfiles\\childrensbook.txt");
else
if ((chosenfile1==3)&&(chosenfile2==1)) statisticsof2textfilescompared ("French Article","The Sun",".\\textfiles\\frenchnewspaper.txt",".\\textfiles\\thesun.txt");
else
if ((chosenfile1==3)&&(chosenfile2==2)) statisticsof2textfilescompared ("French Article","The Times",".\\textfiles\\frenchnewspaper.txt",".\\textfiles\\thetimes.txt");
else
if ((chosenfile1==3)&&(chosenfile2==3)) statisticsof2textfilescompared ("French Article","French Article",".\\textfiles\\frenchnewspaper.txt",".\\textfiles\\frenchnewspaper.txt");
else
if ((chosenfile1==3)&&(chosenfile2==4)) statisticsof2textfilescompared ("French Article","Romeo and Julliet",".\\textfiles\\frenchnewspaper.txt",".\\textfiles\\shakespeare.txt");
else
if ((chosenfile1==3)&&(chosenfile2==5)) statisticsof2textfilescompared ("French Article","Harry Potter",".\\textfiles\\frenchnewspaper.txt",".\\textfiles\\childrensbook.txt");
else
if ((chosenfile1==4)&&(chosenfile2==1)) statisticsof2textfilescompared ("Romeo and Julliet","The Sun",".\\textfiles\\shakespeare.txt",".\\textfiles\\thesun.txt");
else
if ((chosenfile1==4)&&(chosenfile2==2)) statisticsof2textfilescompared ("Romeo and Julliet","The Times",".\\textfiles\\shakespeare.txt",".\\textfiles\\thetimes.txt");
else
if ((chosenfile1==4)&&(chosenfile2==3)) statisticsof2textfilescompared ("Romeo and Julliet","French Article",".\\textfiles\\shakespeare.txt",".\\textfiles\\frenchnewspaper.txt");
else
if ((chosenfile1==4)&&(chosenfile2==4)) statisticsof2textfilescompared ("Romeo and Julliet","Romeo and Julliet",".\\textfiles\\shakespeare.txt",".\\textfiles\\shakespeare.txt");
else
if ((chosenfile1==4)&&(chosenfile2==5)) statisticsof2textfilescompared ("Romeo and Julliet","Harry Potter",".\\textfiles\\shakespeare.txt",".\\textfiles\\childrensbook.txt");
else
if ((chosenfile1==5)&&(chosenfile2==1)) statisticsof2textfilescompared ("Harry Potter","The Sun",".\\textfiles\\childrensbook.txt",".\\textfiles\\thesun.txt");
else
if ((chosenfile1==5)&&(chosenfile2==2)) statisticsof2textfilescompared ("Harry Potter","The Times",".\\textfiles\\childrensbook.txt",".\\textfiles\\thetimes.txt");
else
if ((chosenfile1==5)&&(chosenfile2==3)) statisticsof2textfilescompared ("Harry Potter","French Article",".\\textfiles\\childrensbook.txt",".\\textfiles\\frenchnewspaper.txt");
else
if ((chosenfile1==5)&&(chosenfile2==4)) statisticsof2textfilescompared ("Harry Potter","Romeo and Julliet",".\\textfiles\\childrensbook.txt",".\\textfiles\\shakespeare.txt");
else
if ((chosenfile1==5)&&(chosenfile2==5)) statisticsof2textfilescompared ("Harry Potter","Harry Potter",".\\textfiles\\childrensbook.txt",".\\textfiles\\childrensbook.txt");
else
printf("Invalid menu option, please try again");
Aiiiiiiiiiiiiiii.