can someone add my program to get 6 briefcase then compute 4 offer
base on philipppine deal or no deal that's is why the amount looks like that
Code:
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
long int a[26]={1,5,10,25,50,75,100,150,200,250,300,400,500
,1000,2500,5000,10000,25000,50000,75000,100000,250000,500000,1000000
,2000000,3000000};
long int b[26];
int player;
main(){
int ctr,ctr2;
clrscr();
srand(time(NULL));
for(ctr=0;ctr<26;ctr++){
again:
b[ctr]=a[random(26)];
for(ctr2=ctr-1;ctr2>=0;ctr2--){
if(b[ctr] == b[ctr2])
goto again;
}
}
printf("Choose one of the briefcase");
printf("\nThis will be your briefcase\n");
scanf("%d",&player);
printf("You have chosen your briefcase.");
getch();
printf("\nRound 1\nOpen 6 briefcases\n");
getch();
}