Advertisement
dyamondz

Cap avall - P59875

Oct 3rd, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(){
  5.     int a,b;
  6.     cin>>a>>b;
  7.     if(a>=b){
  8.         for(int i=a;i>=b;i--) cout<<i<<endl;
  9.     }
  10.     if(a<b){
  11.         for(int i=b;i>=a;i--) cout<<i<<endl;
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement