Advertisement
Pafnytiu

цикл 3 - 2

Oct 4th, 2015
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.57 KB | None | 0 0
  1. 1))))#include<iostream>
  2. #include<cmath>
  3. using namespace std;
  4. int main()
  5. {
  6.     int i = 60;
  7.     do cout << i<<"\n";
  8.     while ((i-=2) >= 10);
  9.     cout << endl;
  10.     system("pause");
  11.     return 0;
  12. }
  13.  
  14.  
  15. 2))))#include<iostream>
  16. #include<cmath>
  17. using namespace std;
  18. int main()
  19. {
  20.         int i = 60;
  21.         while (i >= 10)
  22.        { cout << i << "\n" << endl; i-=2;
  23.        }
  24.         system("pause");
  25.         return 0;
  26. }
  27.  
  28.  
  29. 3))))#include<iostream>
  30. #include<cmath>
  31. using namespace std;
  32. int main()
  33. {
  34.     for (int i=60; i>=10; i-=2)
  35.         cout << i <<"\n";
  36.     system("pause");
  37.     return 0;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement