Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a,b,c,ab=0,ats=0,i;
- cin >> a >> b >> c;
- for (i=0; i<c; i++){
- if(ab<c){
- ab=ab+a+b;
- ats++;
- }
- }
- cout << ats*2;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement