//--------------------------------------------------------------------------- #include #include #include #include #pragma hdrstop //--------------------------------------------------------------------------- //int v=10; #pragma argsused int main(int argc, char* argv[]) { int kolvo=0,kolvo1=0,kolvo2=0,prosr=0; int pribyll[15]; int day=0;int day1=0;int h,i,s; double zenazakupki; double zenaprodaji; double zenaprosrochenyh; int a[30];int b[30]; int vsego=0; cout<<"vvedite zenu zakupki: "; cin>>zenazakupki; cout<>zenaprodaji; cout<>zenaprosrochenyh; cout<>a[i]; gotoxy (5*i+8,10); cin>>b[i]; if(i==13){goto zz;} if(i>0 && b[i]==0){goto zz;} gotoxy (i*5+12,7);cout<<"-----"; gotoxy (i*5+12,8);cout<<" |"; gotoxy (i*5+12,9);cout<<"-----"; gotoxy (i*5+12,10);cout<<" |"; gotoxy (i*5+12,11);cout<<"-----"; } zz: for (int j=0;j<=i;j++) { day=day+b[j]; } for ( h=0;h