i deleted the if(a==1)
it goes to the next function but when i entered the point..
Code:
void one()
{
int a ;
int x[20];
printf("\n\n\n\t\tPlayer number 1 of Team Blue has shoot the ball.");
printf("\n\n\n\t\t\t1- one point for free throws");
printf("\n\n\t\t\t2- two points for lay-up shot");
printf("\n\n\t\t\t3- for three point shot");
printf("\n\n\n\t\t\tEnter a score: ");
scanf("%d", &a);
scores();
getch();
}
for example i entered 1 for one point...
the result is jumbled numbers
Code:
void scores()
{clrscr();
printf(" TEAM BLUE\t\tscores\t\t\TEAM GREEN\t\tscores");
printf("\n\n\n\n 1\t\t\t\t\t 3");
printf("\n\n\n 12\t\t\t\t 11");
printf("\n\n\n 2\t\t\t\t\t 7");
printf("\n\n\n 9\t\t\t\t\t 4");
printf("\n\n\n 8\t\t\t\t\t 5");
printf("\n\n\n 21\t\t\t\t 9");
printf("\n\n\n 25\t\t\t\t\t 2");
printf("\n\n\n 5\t\t\t\t 6");
printf("\n\n\n 13\t\t\t\t\t 10");
printf("\n\n\n 14\t\t\t\t\t 14");
getch();
}
is there something wrong with this part?