0
Write a program to print n odd number
can any one help
2 Answers
+ 6
int main() {
int x;
cout << "Enter a number: " << endl;
cin >> x;
for(int i=0; i<=x; i++)
if(i%2==1)
cout << i << endl;
return 0;
}
can any one help