velimir

casovnik

Jan 15th, 2012
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.15 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int i,x,y=0;
  8.     cin >>x;
  9.     for(i=12;x>=12;y++)x=x-i;
  10.     cout <<y;
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment