Answer Posted / radhakrishnan
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 ? | 3 Yes | 11 No |
Post New Answer View All Answers
How many ways can a variable be initialized into in C++?
How to declare a function pointer?
Is dev c++ free?
Define whitespace in C++.
What is a binary file? List the merits and demerits of the binary file usagein C++.
What is bubble sort c++?
Explain mutable storage class specifier.
What is a stack c++?
Is map ordered c++?
What is time h in c++?
What are the benefits of pointers?
What is the use of register keyword with the variables?
If you don’t declare a return value, what type of return value is assumed?
How does a copy constructor differs from an overloaded assignment operator?
What does it mean to declare a member variable as static?