fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(){
  5.  
  6. long long int liczba=0;
  7.  
  8.  
  9.  
  10.  
  11. {
  12.  
  13. while(cin>>liczba){
  14. if(liczba==0)
  15. break;
  16. else if(liczba%15==0)
  17. cout<<"TAK"<<endl;
  18. else cout<<"NIE"<<endl;
  19. }
  20.  
  21. }}
  22.  
  23.  
Success #stdin #stdout 0s 2728KB
stdin
Standard input is empty
stdout
Standard output is empty