Advertisement
Farjana_akter

Untitled

Jul 21st, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4.  
  5. int main()
  6. {
  7. int x,ans;
  8. cin>>x;
  9. ans=x/3;
  10. if(ans<2)
  11. {
  12. cout<<"Get "<<ans<<" free packet"<<endl;
  13. }
  14. else
  15. {
  16. cout<<"Get "<<ans<<" free packets"<<endl;
  17. }
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement