Advertisement
Guest User

III do while

a guest
Oct 24th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.     int a,b,x;
  6.     cout <<"Vvedite A ";
  7.     cin >> a;
  8.     cout <<"Vvedite B ";
  9.     cin >> b;
  10.     x=a;
  11.     if (a>b) cout<<"A>B";
  12.     else
  13.         do {
  14.             cout<<x*x*x<<endl;
  15.             x++;
  16.         }
  17.         while (x<=b);
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement