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 *

Hire a server Expert to resolve the issue Now.

Hire a server Expert to resolve the issue Now.

Resolve this issue in just 5$ from https://serverexpert.io

 

You have Successfully Subscribed!

Open chat