write a c++ program to find odd numbers in range.

Source code-
#include<iostream>
using namespace std;
int main(){
int min,max,num;
cout<<“Enter minimum range “;
cin>>min;
cout<<“Enter maximum range “;
cin>>max;
for(num=min;num<=max;num++)
if(num%2!=0)
cout<<num<<“t”;
}
OUTPUT-
Enter minimum range 1
Enter maximum range 10
1 3 5 7 9

Leave a Comment

Your email address will not be published. Required fields are marked *

To Resolve this issue at just 5$ from ServerExpert

https://serverexpert.io/

For Hosting please visit Hostingwebsite.io

You have Successfully Subscribed!

Open chat