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
Can static member variables be private?
What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?
How many ways can a variable be initialized into in C++?
Which is the best c++ software?
Write a program which employs Recursion
Explain the benefits of proper inheritance.
Is c++ still being used?
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?
How is c++ used in the real world?
What is == in programming?
What is c++ hash?
Explain about Virtual Function in C++?
Const char *p , char const *p What is the difference between the above two?
What is the extraction operator and what does it do?
When does a 'this' pointer get created?