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
What is == in programming?
What is prototype for that c string function?
What is pure virtual function? Or what is abstract class?
Out of fgets() and gets() which function is safe to use?
Write a program to show polymorphism in C++?
Where can I run c++ program?
What do you mean by function overriding & function overloading in c++?
What is the use of 'using' declaration in c++?
Tell me difference between constant pointer and pointer to a constant.
What is one dimensional array in c++?
What are the various situations where a copy constructor is invoked?
What is the difference between equal to (==) and assignment operator (=)?
Mention the purpose of istream class?
Does improper inheritance have a potential to wreck a project?
Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?