Write a program to print first 'n' odd numbers in descending order.
C++ || Class 11
AdiK1needy:
hey brainly hulk i agree with you that answering on this app is a waste of time and nobody is expert to answer my questions
Answers
Answered by
5
C++ code is:
#include<iostream.h>
#include<conio.h>
void main()
{
int x;
clrscr();
i = 1;
do
{
cout<<i<<","; # By CoolBro
i = i+1;
}while(i>=19);
getch();
}
I am only 14 years old so please subscribe on my youtube channel:
Youtube: shorturl.at/mnB57
If you have Some more questions, then contact me at:
Email: [email protected]
Answered by
4
#include<iostream>
using namespace std;
int main() {
int number, i, dorder;
cout << "Enter Range :";
cin>>number;
cout << "\nList is :";
for (i = n - 1; i >= 0; i--)
{
dorder = 1 + i * 2;
cout << dorder << " ";
}
return 0;
}
Similar questions