Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- voide quaylui(int i) //int la integer
- { //cai nay = voi begin thoi
- int j,k; // khoi tao gia tri j va k
- for(j=0;j<=1;j++) // for j tu 0 den 1, hay noi cach khac la thu moi cau hinh(aka state)
- {
- a[i]=j; //mang a o day la mang res,
- if(i=n) // du n thang roi thi xuat
- {
- for 1->n xuat a[i] thoi
- }
- else quaylui(i+1); // chay len thang i+1
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement