0

Write a program to print n odd number

can any one help

21st Dec 2017, 1:11 PM
Aman Singh
Aman Singh - avatar
2 ответов
+ 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; }
21st Dec 2017, 1:25 PM
GAWEN STEASY
GAWEN STEASY - avatar