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
What is &x in c++?
What are the methods of exporting a function from a dll?
How do you flush a buffer in c++?
what are Operators and explain with an example?
When do you call copy constructors?
How does work in c++?
Explain the different access specifiers for the class member in c++.
What is the difference between #import and #include in c++?
Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.
What is the use of "new" operator?
Specify different types of decision control statements?
How do we balance an AVL Tree in C++?
What is the difference between passing by reference and passing a reference?
Why is c++ not purely object oriented?
What is the full form of stl in c++?