fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int kol,i;
  7.  
  8. kol=0;
  9.  
  10. for(i=10;i<=99;i++)
  11. {
  12. kol += ((i%10>0) && (i%2==0)) ? 1:0;
  13. }
  14. cout<<"kol="<<kol<<endl;
  15. return 0;
  16. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
kol=36