fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int cnt=0,i1,i2,i3,i4;
  7. for(i1=0;i1<=1;i1++){
  8. for(i2=0;i2<=7;i2++){
  9. for(i3=0;i3<=2;i3++){
  10. for(i4=0;i4<=9;i4++) cnt+=(i1+i2+i3+i4 == 10);
  11. }
  12. }
  13. }
  14. cout<<"cnt = "<<cnt;
  15. cout<<"\n";
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 5356KB
stdin
Standard input is empty
stdout
cnt = 47