Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void main(){
- int x,y,temp;
- cout<<"input lower limit"<<endl;
- cin>>x;
- cout<<"input upper limit"<<endl;
- cin>>y;
- temp = x+1;
- while (temp<y){
- if(temp%2 != 0) cout<<temp<<",";
- temp++;
- }
- }
Add Comment
Please, Sign In to add comment