print first nodd numbers in descending order

Answer Posted / clearner

void odddesc(int n)
{
for(int i=(2*n-1);i>=1;i=1-2)
cout<<i<<endl;
}

Is This Answer Correct ?    5 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is java a c++?

653


What are manipulators in c++ with example?

676


Explain the concept of friend function in c++?

713


How does atoi function work?

744


Write a struct time where integer m, h, s are its members?

607






When you overload member functions, in what ways must they differ?

678


Write a Program to find the largest of 4 no using macros.

686


Is c++ a pure oop language?

696


What does floor mean in c++?

673


Which software is used for c++ programming?

713


How a pointer differs from a reference?

810


What is the arrow operator in c++?

643


How long does it take to get good at leetcode?

762


declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator

1840


What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?

711