Guest User

Untitled

a guest
Jul 16th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>    
  2. using namespace std;
  3. void main(){
  4.                 int x,y,temp;
  5.                 cout<<"input lower limit"<<endl;
  6.                 cin>>x;
  7.                 cout<<"input upper limit"<<endl;
  8.                 cin>>y;
  9.                 temp = x+1;
  10.                 while (temp<y){
  11.                     if(temp%2 != 0) cout<<temp<<",";
  12.                     temp++;
  13.                    
  14.  
  15.                 }
  16.  
  17.  
  18.                
  19.             }
Add Comment
Please, Sign In to add comment