Computer Science, asked by BrainlyHulk, 1 year ago

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
AdiK1needy: in this app
BrainlyHulk: ya
AdiK1needy: hey how then you have so many followers and reached genius status?
BrainlyHulk: i have answered a lot
AdiK1needy: ok

Answers

Answered by CoolBro003
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]



CoolBro003: Bro Please rectify this:
CoolBro003: int x;
CoolBro003: int i;
BrainlyHulk: ok
Answered by topanswers
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