Hey guys, I've started building a program for college, everything was running really smooth and I've started to pick things up in the past couple days, but for the life of me I cannot find where I have a syntax error, neither can my friends :/ I've tried looking up methods to help finding missing parenthesis, by properly indenting work and such but still no luck, here's the code in question. Please help D: I also realise there's no getchar(); return 0; at the end, I havent added the back into the code as I was trying to remove clutter to make it as easily read as possible.
#include <stdio.h>
#include <conio.h>
int main()
{
int menu();
printf("\n To commence our program please press the enter key to continue...");
getchar();
system("CLS");
void mainmenu();
char selection;
int menu1;
int number;
{
printf("\n******************************************************");
printf("\n******************************************************");
printf("\n** Hello and welcome to my program! **");
printf("\n** Please select the program you would like to run! **");
printf("\n******************************************************");
printf("\n** - 1. Multiplication table **");
printf("\n** - 2. Program B - **");
printf("\n** - 3. Program C - **");
printf("\n** - 4. Program D - **");
printf("\n** - 5. Exit - **");
printf("\n******************************************************");
printf("\n******************************************************");
printf("\n ");
scanf("%d", &selection);
system("CLS");
switch (selection)
{
case 1:
do
{
int i, j;
printf (" |");
for (i = 1; i <= 10; ++i)
printf ("%#3d ", i);
printf ("\n");
for (i = 1; i < 64; ++i)
printf ("-");
printf ("\n");
for (i = 1; i <= 10; ++i) {
printf ("%#2d |", i);
for (j = 1; j <= 10; ++j)
printf ("%#3d ", i * j);
printf ("\n");
}
break;
}
}
}