Results 1 to 5 of 5
Thread: C.
Hybrid View
-
13th March 2011 20:37 #1
C.
!
, , :
" N , N. , N."
? , .
., .
-
13th March 2011 20:48 #2Registered User
Join Date: Oct:2003
Location:
Posts: 4,317
5. :
1 1 1 1 1
1 1 1 2
1 1 3
1 4
1 2 2
1 3 1
2 3
, . N (N-1,1).
-
13th March 2011 21:09 #3
, .
---------- 21:09 ---------- 21:00 ----------
. ?Code:#include <iostream> using namespace std; int coin[]={9,8,7,6,5,4,3,2,1}; void nom(int sum, int i) { if(i>8) return; int res=sum/coin[i]; int s1=sum%coin[i]; if(res>0) cout<<" "<<res<<"*"<<coin[i]; nom(s1, i+1); } void main() { int sum; cout<<"\n Vuvedi syma: "; cin>>sum; nom(sum,0); cout<<endl<<endl; }, .
-
14th March 2011 00:11 #4Registered User
Join Date: Dec:2007
Location: Sofia
Posts: 366
, .

bsb?
-
22nd March 2011 19:08 #5




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in