Answer Posted / prk
void main()
{
int i,n,k;
cout<<"Enter the number:";
cin>>n;
k=n%2;
if(k==0)
n=n-1;
for(i=n;i<=n;i=1-2)
cout<<1;
}
Is This Answer Correct ? | 9 Yes | 15 No |
Post New Answer View All Answers
Discuss the possibilities related to the termination of a program before entering the mainq method?
Write about all the implicit member functions of a class?
Why c++ is faster than java?
When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?
Is main a class in c++?
Explain terminate() and unexpected() function?
Is c++ a float?
What are put and get pointers?
What are the various operations performed on stack?
What is dynamic and static typing?
How many ways can a variable be initialized into in C++?
What is the use of c++ programming language in real life?
What is linked list in c++?
What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass
Differentiate between the manipulator and setf( ) function?