Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int k, t, c;
- cin>>k;
- t=k%2;
- c=k%20;
- if(t==1){
- cout<<k/10;
- } else{
- if(c==2){
- cout<<0;
- } else{
- if(c==4){
- cout<<1;
- } else{
- if(c==6){
- cout<<2;
- } else{
- if(c==8){
- cout<<3;
- } else{
- if(c==10){
- cout<<4;
- } else{
- if(c==12){
- cout<<5;
- } else{
- if(c==14){
- cout<<6;
- } else{
- if(c==16){
- cout<<7;
- } else{
- if(c==18){
- cout<<8;
- } else{cout<<9;}
- }
- }
- }
- }
- }
- }
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement