Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int n;
- cin>>n;
- int c=n%4;
- if(n%4==0){
- cout<< "0" <<endl;
- }else if(n%4==1){
- cout<< 3*9 <<endl;
- }
- else if(n%4==2)
- {
- cout<< 2*9 <<endl;
- }else if (n%4==3){
- cout<< 1*9 <<endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement