program to display the odd number from 101 to 200 c++
Answers
Answered by
4
The given problem is solved using language - C++.
#include <iostream>
using namespace std;
int main() {
cout<<"Odd numbers from 101 to 200 are as follows:\n";
for(int i=101;i<=200;i+=2)
cout<<i<<" ";
return 0;
}
- Repeat I = 101 to 200
- Print The value of I.
- Increment the value of 'I' by 2.
- Break loop if I > 200.
Odd numbers from 101 to 200 are as follows:
101 103 105 107 109 111 113 115 117 119 121 123 125 127 129 131 133 135 137 139 141 143 145 147 149 151 153 155 157 159 161 163 165 167 169 171 173 175 177 179 181 183 185 187 189 191 193 195 197 199
Attachments:
anindyaadhikari13:
Thanks for the brainliest :)
Similar questions