|
|
вернуться в форумpls help me...........its running in my compiler....i cant spot the errors.Pls help me tio find the errors. #include<iostream> using namespace std; int main() { int j,i,temp=0,p=0,a[10]; long long int n,k; cin>>n; if (n/10==0) { cout<<1<<n; p=1; }
for(i=9,k=n,j=0;i>1&&p==0;) { if(k%i==0) { a[j++]=i; k=k/i; temp=1; } else i--; } for(i=--j;temp==1&&i>=0&&p==0;i--) { cout<<a[i]; } if (temp==0) cout<<-1; system("PAUSE"); return(0); } Re: pls help me...........its running in my compiler....i cant spot the errors.Pls help me tio find the errors. Послано CP GS 8 окт 2008 01:48 Remove system("PAUSE"); |
|
|